[vlc-commits] chromecast: don't setup video transcode when not needed
Thomas Guillem
git at videolan.org
Thu Jan 25 18:33:25 CET 2018
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Mon Jan 22 17:44:58 2018 +0100| [556d8a94b2814300e579cd9f51c87b6a703c41ae] | committer: Thomas Guillem
chromecast: don't setup video transcode when not needed
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=556d8a94b2814300e579cd9f51c87b6a703c41ae
---
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 cda22e2a4e..01432f4460 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