From ee88ae15b3060631d6858fcd180e892883d2c299 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 19 May 2018 18:14:20 +0200 Subject: player: move a function (no functional changes) --- player/loadfile.c | 14 +++++++------- 1 file 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) { -- cgit v1.2.3