From 44a7cb7f0ed9c46bb83ce4aa23de257c4ba1b862 Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 19 Sep 2016 19:57:31 +0200 Subject: player: minor changes in init code Move the MPV_LEAK_REPORT env query to mp_create(), where it will also be used by the client API (it might be helpful, so why not). The same applies to MPV_VERBOSE. The prepare_playlist() call doesn't need to be in mp_initialize() and can just be in mp_play_files() to reduce the size of mp_initialize(). Also, remove wakeup_playloop(), which is 100% redundant with mp_wakeup_core_cb(). --- player/video.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'player/video.c') diff --git a/player/video.c b/player/video.c index 3835ef5f95..ca207fb6aa 100644 --- a/player/video.c +++ b/player/video.c @@ -285,7 +285,7 @@ static void recreate_video_filters(struct MPContext *mpctx) vf_destroy(vo_c->vf); vo_c->vf = vf_new(mpctx->global); vo_c->vf->hwdec_devs = vo_c->hwdec_devs; - vo_c->vf->wakeup_callback = wakeup_playloop; + vo_c->vf->wakeup_callback = mp_wakeup_core_cb; vo_c->vf->wakeup_callback_ctx = mpctx; vo_c->vf->container_fps = vo_c->container_fps; vo_control(vo_c->vo, VOCTRL_GET_DISPLAY_FPS, &vo_c->vf->display_fps); -- cgit v1.2.3