mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-29 14:45:55 +08:00
修复错误拼写、加快流注册速度
This commit is contained in:
parent
93160c0ec7
commit
caceb90b40
@ -91,7 +91,7 @@ void API_CALL on_mk_play_event_func(void *user_data, int err_code, const char *e
|
|||||||
if (err_code == 0) {
|
if (err_code == 0) {
|
||||||
//success
|
//success
|
||||||
log_debug("play success!");
|
log_debug("play success!");
|
||||||
ctx->media = mk_media_create("__defaultVost__", "live", "test", 0, 0, 0);
|
ctx->media = mk_media_create("__defaultVhost__", "live", "test", 0, 0, 0);
|
||||||
|
|
||||||
int video_codec = mk_player_video_codecId(ctx->player);
|
int video_codec = mk_player_video_codecId(ctx->player);
|
||||||
int audio_codec = mk_player_audio_codecId(ctx->player);
|
int audio_codec = mk_player_audio_codecId(ctx->player);
|
||||||
@ -108,6 +108,7 @@ void API_CALL on_mk_play_event_func(void *user_data, int err_code, const char *e
|
|||||||
mk_player_audio_channel(ctx->player),
|
mk_player_audio_channel(ctx->player),
|
||||||
mk_player_audio_bit(ctx->player));
|
mk_player_audio_bit(ctx->player));
|
||||||
}
|
}
|
||||||
|
mk_media_init_complete(ctx->media);
|
||||||
mk_media_set_on_regist(ctx->media, on_mk_media_source_regist_func, ctx);
|
mk_media_set_on_regist(ctx->media, on_mk_media_source_regist_func, ctx);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user