From e02c9b9902f5bd356088cfbff3b9c333e50f1e47 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 29 Apr 2018 20:03:24 +0200 Subject: build: make encoding mode non-optional Makes it easier to not break the build by confusing the ifdeffery. --- player/playloop.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'player/playloop.c') 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); -- cgit v1.2.3