[vlc-commits] input: don't wait data to create sout input
Francois Cartegnie
git at videolan.org
Fri Feb 2 09:41:52 CET 2018
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Mon Jan 29 18:14:39 2018 +0100| [2816e5e7d68f35a172115e4a4637a6eaa21edd62] | committer: Francois Cartegnie
input: don't wait data to create sout input
No sout mux buffer parameters is sufficient
as spu can arrive really late.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2816e5e7d68f35a172115e4a4637a6eaa21edd62
---
src/input/decoder.c | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/src/input/decoder.c b/src/input/decoder.c
index 6bcadfcbc8..98817e6f39 100644
--- a/src/input/decoder.c
+++ b/src/input/decoder.c
@@ -1930,6 +1930,22 @@ static decoder_t *decoder_New( vlc_object_t *p_parent, input_thread_t *p_input,
else
i_priority = VLC_THREAD_PRIORITY_VIDEO;
+#ifdef ENABLE_SOUT
+ /* Do not delay sout creation for SPU or DATA. */
+ if( p_sout && fmt->b_packetized &&
+ (fmt->i_cat != VIDEO_ES && fmt->i_cat != AUDIO_ES) )
+ {
+ decoder_owner_sys_t *p_owner = p_dec->p_owner;
+ p_owner->p_sout_input = sout_InputNew( p_owner->p_sout, fmt );
+ if( p_owner->p_sout_input == NULL )
+ {
+ msg_Err( p_dec, "cannot create sout input (%4.4s)",
+ (char *)&fmt->i_codec );
+ p_owner->error = true;
+ }
+ }
+#endif
+
/* Spawn the decoder thread */
if( vlc_clone( &p_dec->p_owner->thread, DecoderThread, p_dec, i_priority ) )
{
More information about the vlc-commits
mailing list