[vlc-commits] chromecast: refactor, make place for SPUs
Thomas Guillem
git at videolan.org
Fri Jan 19 17:58:25 CET 2018
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Fri Jan 19 13:39:40 2018 +0100| [ddca3d13fdce15e9e1f04de7e3170b0842ca251a] | committer: Thomas Guillem
chromecast: refactor, make place for SPUs
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ddca3d13fdce15e9e1f04de7e3170b0842ca251a
---
modules/stream_out/chromecast/cast.cpp | 20 ++++++++++++--------
1 file changed, 12 insertions(+), 8 deletions(-)
diff --git a/modules/stream_out/chromecast/cast.cpp b/modules/stream_out/chromecast/cast.cpp
index 13a5189083..d5d0e9c75a 100644
--- a/modules/stream_out/chromecast/cast.cpp
+++ b/modules/stream_out/chromecast/cast.cpp
@@ -358,17 +358,21 @@ bool sout_stream_sys_t::UpdateOutput( sout_stream_t *p_stream )
i_codec_audio = p_es->i_codec;
p_original_audio = p_es;
}
- else if (b_supports_video && p_es->i_cat == VIDEO_ES &&
- p_original_video == NULL )
+ else if (b_supports_video)
{
- if (!canDecodeVideo( p_es->i_codec ))
+ if (p_es->i_cat == VIDEO_ES && p_original_video == NULL)
{
- msg_Dbg( p_stream, "can't remux video track %d codec %4.4s", p_es->i_id, (const char*)&p_es->i_codec );
- canRemux = false;
+ if (!canDecodeVideo( p_es->i_codec ))
+ {
+ msg_Dbg( p_stream, "can't remux video track %d codec %4.4s",
+ p_es->i_id, (const char*)&p_es->i_codec );
+ canRemux = false;
+ }
+ else if (i_codec_video == 0)
+ i_codec_video = p_es->i_codec;
+ p_original_video = p_es;
}
- else if (i_codec_video == 0)
- i_codec_video = p_es->i_codec;
- p_original_video = p_es;
+ /* TODO: else handle ttml/webvtt */
}
}
More information about the vlc-commits
mailing list