diff options
-rw-r--r-- | player/loadfile.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/player/loadfile.c b/player/loadfile.c index 194372e271..39ba179c02 100644 --- a/player/loadfile.c +++ b/player/loadfile.c @@ -61,6 +61,13 @@ #include "command.h" #include "libmpv/client.h" +// Called from the demuxer thread if a new packet is available, or other changes. +static void wakeup_demux(void *pctx) +{ + struct MPContext *mpctx = pctx; + mp_wakeup_core(mpctx); +} + // Called by foreign threads when playback should be stopped and such. void mp_abort_playback_async(struct MPContext *mpctx) { @@ -282,13 +289,6 @@ void reselect_demux_stream(struct MPContext *mpctx, struct track *track) mpctx->seek_slave = NULL; } -// Called from the demuxer thread if a new packet is available. -static void wakeup_demux(void *pctx) -{ - struct MPContext *mpctx = pctx; - mp_wakeup_core(mpctx); -} - static void enable_demux_thread(struct MPContext *mpctx, struct demuxer *demux) { if (mpctx->opts->demuxer_thread && !demux->fully_read) { |