diff options
author | wm4 <wm4@nowhere> | 2018-05-19 18:14:20 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2018-05-24 19:56:35 +0200 |
commit | ee88ae15b3060631d6858fcd180e892883d2c299 (patch) | |
tree | 7f514efc9f5c767d3b97e12a9843f3223ff1e1aa /player/loadfile.c | |
parent | dee84be2225481a9eccbbb08f8423afc40c9d07c (diff) | |
download | mpv-ee88ae15b3060631d6858fcd180e892883d2c299.tar.bz2 mpv-ee88ae15b3060631d6858fcd180e892883d2c299.tar.xz |
player: move a function (no functional changes)
Diffstat (limited to 'player/loadfile.c')
-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) { |