diff options
author | wm4 <wm4@nowhere> | 2016-09-19 19:57:31 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-09-19 19:57:31 +0200 |
commit | 44a7cb7f0ed9c46bb83ce4aa23de257c4ba1b862 (patch) | |
tree | 9b77b4b23e3bf93415e44c9d36186da3e156a3b2 /player/loadfile.c | |
parent | ce65ea3345b657b624f28587bd7f31466ac145a2 (diff) |
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().
Diffstat (limited to 'player/loadfile.c')
-rw-r--r-- | player/loadfile.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/player/loadfile.c b/player/loadfile.c index abce5b3168..9fdd38127f 100644 --- a/player/loadfile.c +++ b/player/loadfile.c @@ -1296,6 +1296,8 @@ struct playlist_entry *mp_next_file(struct MPContext *mpctx, int direction, // Return if all done. void mp_play_files(struct MPContext *mpctx) { + prepare_playlist(mpctx, mpctx->playlist); + for (;;) { idle_loop(mpctx); if (mpctx->stop_play == PT_QUIT) |