[vlc-commits] a52: reset the ES to AUDIO_ES on error

Steve Lhomme git at videolan.org
Sat Jul 8 18:38:06 CEST 2017


vlc | branch: master | Steve Lhomme <robux4 at videolabs.io> | Wed Jul  5 15:18:49 2017 +0200| [9348a3e6dd3e22920bee7a6365e7abd6a89efb18] | committer: Jean-Baptiste Kempf

a52: reset the ES to AUDIO_ES on error

rather than UNKNOWN_ES

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9348a3e6dd3e22920bee7a6365e7abd6a89efb18
---

 modules/codec/a52.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/codec/a52.c b/modules/codec/a52.c
index 0f59b581ef..050611f055 100644
--- a/modules/codec/a52.c
+++ b/modules/codec/a52.c
@@ -365,7 +365,7 @@ static int Open( 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 );
         Close( p_this );
         return VLC_EGENERIC;
     }



More information about the vlc-commits mailing list