summaryrefslogtreecommitdiffstats
path: root/player/video.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-11-21 05:12:55 +0100
committerwm4 <wm4@nowhere>2014-11-21 05:18:09 +0100
commit85fb2af369e9ea8638beaf3a34865e3553329a02 (patch)
tree5d73b2ea57a66fc8e9ef33358a4aa89071a2e60f /player/video.c
parent4704fab82c084dbcca52b5e75f7a36877921dbd9 (diff)
downloadmpv-85fb2af369e9ea8638beaf3a34865e3553329a02.tar.bz2
mpv-85fb2af369e9ea8638beaf3a34865e3553329a02.tar.xz
Remove some superfluous NULL checks
In all of these situations, NULL is logically not allowed, making the checks redundant. Coverity complained about accessing the pointers before checking them for NULL later.
Diffstat (limited to 'player/video.c')
-rw-r--r--player/video.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/player/video.c b/player/video.c
index f74bd4d9f5..506c7971a7 100644
--- a/player/video.c
+++ b/player/video.c
@@ -202,9 +202,6 @@ int reinit_video_filters(struct MPContext *mpctx)
if (need_reconfig)
filter_reconfig(mpctx, true);
- if (!d_video->vfilter)
- return 0;
-
return d_video->vfilter->initialized;
}