Commit 5ee8e529 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

chromecast: Don't transcode supported codecs

parent 32970867
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment