player: move a function (no functional changes)

This commit is contained in:
wm4 committed 2018-05-24 19:56:35 +02:00
1 parent dee84be222
commit ee88ae15b3
1 file changed
+7 -7
+7 -7
View File
@@ -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) {