summaryrefslogtreecommitdiffstats
path: root/mpvcore
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-11-23 21:38:39 +0100
committerwm4 <wm4@nowhere>2013-11-23 21:38:39 +0100
commit02f96efc509021d3dccea635044580199ddd0665 (patch)
treec1dad9db3658309e9a9362b981141f31ac1ad9f4 /mpvcore
parent904c73d2d214c729fbeedc13c8b47afab91e296b (diff)
downloadmpv-02f96efc509021d3dccea635044580199ddd0665.tar.bz2
mpv-02f96efc509021d3dccea635044580199ddd0665.tar.xz
dec_video: remove "initialized" field
It's redundant.
Diffstat (limited to 'mpvcore')
-rw-r--r--mpvcore/player/video.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/mpvcore/player/video.c b/mpvcore/player/video.c
index 248ec91431..dea00585c4 100644
--- a/mpvcore/player/video.c
+++ b/mpvcore/player/video.c
@@ -142,9 +142,7 @@ int reinit_video_chain(struct MPContext *mpctx)
recreate_video_filters(mpctx);
- video_init_best_codec(d_video, opts->video_decoders);
-
- if (!d_video->initialized)
+ if (!video_init_best_codec(d_video, opts->video_decoders))
goto err_out;
bool saver_state = opts->pause || !opts->stop_screensaver;