[vlc-commits] chromecast: don't setup video transcode when not needed

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


vlc/vlc-3.0 | branch: master | Thomas Guillem <thomas at gllm.fr> | Mon Jan 22 17:44:58 2018 +0100| [18e98a1919c20218694044d07f336c48ed2d256e] | committer: Jean-Baptiste Kempf

chromecast: don't setup video transcode when not needed

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

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

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

diff --git a/modules/stream_out/chromecast/cast.cpp b/modules/stream_out/chromecast/cast.cpp
index c314d61c14..35992309ff 100644
--- a/modules/stream_out/chromecast/cast.cpp
+++ b/modules/stream_out/chromecast/cast.cpp
@@ -476,7 +476,7 @@ bool sout_stream_sys_t::UpdateOutput( sout_stream_t *p_stream )
             if( i_codec_audio == VLC_CODEC_VORBIS )
                 ssout << "aenc=vorbis{quality=6},";
         }
-        if ( b_supports_video && i_codec_video == 0 )
+        if ( i_codec_video == 0 && p_original_video )
         {
             i_codec_video = DEFAULT_TRANSCODE_VIDEO;
             msg_Dbg( p_stream, "Converting video to %.4s", (const char*)&i_codec_video );
@@ -509,7 +509,7 @@ bool sout_stream_sys_t::UpdateOutput( sout_stream_t *p_stream )
         ssout << "}:";
     }
     std::string mime;
-    if ( !b_supports_video && default_muxer == DEFAULT_MUXER )
+    if ( !p_original_video && default_muxer == DEFAULT_MUXER )
         mime = "audio/x-matroska";
     else if ( i_codec_audio == VLC_CODEC_VORBIS &&
               i_codec_video == VLC_CODEC_VP8 &&



More information about the vlc-commits mailing list