summaryrefslogtreecommitdiffstats
path: root/mpvcore/mplayer.c
diff options
context:
space:
mode:
Diffstat (limited to 'mpvcore/mplayer.c')
-rw-r--r--mpvcore/mplayer.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/mpvcore/mplayer.c b/mpvcore/mplayer.c
index 2e3751a845..c6eff97338 100644
--- a/mpvcore/mplayer.c
+++ b/mpvcore/mplayer.c
@@ -546,6 +546,9 @@ void uninit_player(struct MPContext *mpctx, unsigned int mask)
ao_uninit(mpctx->ao, mpctx->stop_play != AT_END_OF_FILE);
mpctx->ao = NULL;
}
+
+ if (mask & INITIALIZED_PLAYBACK)
+ mpctx->initialized_flags &= ~INITIALIZED_PLAYBACK;
}
static MP_NORETURN void exit_player(struct MPContext *mpctx,
@@ -4171,6 +4174,7 @@ static void play_current_file(struct MPContext *mpctx)
{
struct MPOpts *opts = mpctx->opts;
+ mpctx->initialized_flags |= INITIALIZED_PLAYBACK;
mpctx->stop_play = 0;
mpctx->filename = NULL;