mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-22 10:40:05 +08:00
修复错误拼写、加快流注册速度
This commit is contained in:
parent
e8a409b811
commit
3da874b6a1
@ -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