[vlc-commits] chromecast: remove deadcode

Thomas Guillem git at videolan.org
Fri Jan 26 14:27:13 CET 2018


vlc/vlc-3.0 | branch: master | Thomas Guillem <thomas at gllm.fr> | Fri Jan 26 09:39:58 2018 +0100| [1ae2df5c4569c6a7f1acc81ddcc556b1d0ae4664] | committer: Jean-Baptiste Kempf

chromecast: remove deadcode

CID #1464406

(cherry picked from commit 6a12a2059998822628b132307132b4c7cda0e868)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=1ae2df5c4569c6a7f1acc81ddcc556b1d0ae4664
---

 modules/stream_out/chromecast/cast.cpp | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/modules/stream_out/chromecast/cast.cpp b/modules/stream_out/chromecast/cast.cpp
index 589a82ec58..4c3aa364d6 100644
--- a/modules/stream_out/chromecast/cast.cpp
+++ b/modules/stream_out/chromecast/cast.cpp
@@ -564,8 +564,7 @@ bool sout_stream_sys_t::UpdateOutput( sout_stream_t *p_stream )
             s_fourcc[4] = '\0';
             ssout << s_fourcc << ',' << psz_video_maxres << ',';
 
-            const video_format_t *p_vid =
-                p_original_video ? &p_original_video->video : NULL;
+            const video_format_t *p_vid = &p_original_video->video;
             const bool b_hdres = p_vid == NULL || p_vid->i_height == 0 || p_vid->i_height >= 800;
             unsigned i_video_x264_crf = b_hdres ? i_video_x264_crf_hd : i_video_x264_crf_720p;
 



More information about the vlc-commits mailing list