[vlc-commits] chromecast: remove deadcode

Thomas Guillem git at videolan.org
Fri Jan 26 09:40:42 CET 2018


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Fri Jan 26 09:39:58 2018 +0100| [6a12a2059998822628b132307132b4c7cda0e868] | committer: Thomas Guillem

chromecast: remove deadcode

CID #1464406

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6a12a2059998822628b132307132b4c7cda0e868
---

 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