vlc | branch: master | Hugo Beauzée-Luyssen <h...@beauzee.fr> | Wed Feb 15 15:18:31 2017 +0100| [5ee8e52920cd330bda7670876c2ce55ae17add5d] | committer: Hugo Beauzée-Luyssen
chromecast: Don't transcode supported codecs > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5ee8e52920cd330bda7670876c2ce55ae17add5d --- modules/stream_out/chromecast/cast.cpp | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/modules/stream_out/chromecast/cast.cpp b/modules/stream_out/chromecast/cast.cpp index 12b2051..6ea9eac 100644 --- a/modules/stream_out/chromecast/cast.cpp +++ b/modules/stream_out/chromecast/cast.cpp @@ -265,15 +265,19 @@ int sout_stream_sys_t::UpdateOutput( sout_stream_t *p_stream ) i_codec_video = DEFAULT_TRANSCODE_VIDEO; /* TODO: provide audio samplerate and channels */ - ssout << "transcode{acodec="; + ssout << "transcode{"; char s_fourcc[5]; - vlc_fourcc_to_char( i_codec_audio, s_fourcc ); - s_fourcc[4] = '\0'; - ssout << s_fourcc; - if ( b_has_video ) + if ( canDecodeAudio( i_codec_audio ) == false ) + { + ssout << "acodec="; + vlc_fourcc_to_char( i_codec_audio, s_fourcc ); + s_fourcc[4] = '\0'; + ssout << s_fourcc << ','; + } + if ( b_has_video && canDecodeVideo( i_codec_video ) == false ) { /* TODO: provide maxwidth,maxheight */ - ssout << ",vcodec="; + ssout << "vcodec="; vlc_fourcc_to_char( i_codec_video, s_fourcc ); s_fourcc[4] = '\0'; ssout << s_fourcc; _______________________________________________ vlc-commits mailing list vlc-commits@videolan.org https://mailman.videolan.org/listinfo/vlc-commits