From 0868546f9d7b69feb53c150ed508d5eb56274f86 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 12 Feb 2016 16:05:46 +0100 Subject: player: remove dead code Fixes CID 1350055 and CID 1350054. --- player/audio.c | 2 +- player/video.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/player/audio.c b/player/audio.c index 966c998e12..2a0614c259 100644 --- a/player/audio.c +++ b/player/audio.c @@ -420,7 +420,7 @@ void reinit_audio_chain_src(struct MPContext *mpctx, struct lavfi_pad *src) track = mpctx->current_track[0][STREAM_AUDIO]; if (!track) return; - sh = track ? track->stream : NULL; + sh = track->stream; if (!sh) { uninit_audio_out(mpctx); goto no_audio; diff --git a/player/video.c b/player/video.c index 12a566cd12..3a7d6b1e20 100644 --- a/player/video.c +++ b/player/video.c @@ -366,7 +366,7 @@ int reinit_video_chain_src(struct MPContext *mpctx, struct lavfi_pad *src) track = mpctx->current_track[0][STREAM_VIDEO]; if (!track) return 0; - sh = track ? track->stream : NULL; + sh = track->stream; if (!sh) goto no_video; } -- cgit v1.2.3