summaryrefslogtreecommitdiffstats
path: root/player/playloop.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2018-04-29 20:03:24 +0200
committerJan Ekström <jeebjp@gmail.com>2018-05-03 01:08:44 +0300
commite02c9b9902f5bd356088cfbff3b9c333e50f1e47 (patch)
tree511c7b99c4288cab58d313f29caba78e4f8fdce1 /player/playloop.c
parent0ab3184526e7b9b95c06a3ec7a6674283a5922d0 (diff)
downloadmpv-e02c9b9902f5bd356088cfbff3b9c333e50f1e47.tar.bz2
mpv-e02c9b9902f5bd356088cfbff3b9c333e50f1e47.tar.xz
build: make encoding mode non-optional
Makes it easier to not break the build by confusing the ifdeffery.
Diffstat (limited to 'player/playloop.c')
-rw-r--r--player/playloop.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/player/playloop.c b/player/playloop.c
index a0945db845..a7771b8be3 100644
--- a/player/playloop.c
+++ b/player/playloop.c
@@ -227,9 +227,7 @@ void reset_playback_state(struct MPContext *mpctx)
mpctx->cache_buffer = 100;
mpctx->seek_slave = NULL;
-#if HAVE_ENCODING
encode_lavc_discontinuity(mpctx->encode_lavc_ctx);
-#endif
update_internal_pause_state(mpctx);
update_core_idle_state(mpctx);
@@ -1067,12 +1065,10 @@ static void handle_eof(struct MPContext *mpctx)
void run_playloop(struct MPContext *mpctx)
{
-#if HAVE_ENCODING
if (encode_lavc_didfail(mpctx->encode_lavc_ctx)) {
mpctx->stop_play = PT_QUIT;
return;
}
-#endif
update_demuxer_properties(mpctx);