[vlc-devel] [PATCH 10/18] spdif: reset the ES to AUDIO_ES on error

Steve Lhomme robux4 at videolabs.io
Wed Jul 5 17:00:24 CEST 2017


rather than UNKNOWN_ES
---
 modules/codec/spdif.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/codec/spdif.c b/modules/codec/spdif.c
index db25526781..50e4d4d58e 100644
--- a/modules/codec/spdif.c
+++ b/modules/codec/spdif.c
@@ -80,7 +80,7 @@ OpenDecoder(vlc_object_t *p_this)
 
     if (decoder_UpdateAudioFormat(p_dec))
     {
-        es_format_Init(&p_dec->fmt_out, UNKNOWN_ES, 0);
+        es_format_Init(&p_dec->fmt_out, AUDIO_ES, 0);
         return VLC_EGENERIC;
     }
 
-- 
2.12.1



More information about the vlc-devel mailing list