[vlc-devel] [PATCH 07/25] rawaud: initialize the ES directly with the known codec
Steve Lhomme
robux4 at videolabs.io
Mon Jul 10 16:52:11 CEST 2017
---
modules/demux/rawaud.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/modules/demux/rawaud.c b/modules/demux/rawaud.c
index c21951806d..968bc4af2d 100644
--- a/modules/demux/rawaud.c
+++ b/modules/demux/rawaud.c
@@ -110,10 +110,9 @@ static int Open( vlc_object_t * p_this )
if( !p_sys )
return VLC_ENOMEM;
- es_format_Init( &p_sys->fmt, AUDIO_ES, 0 );
-
char *psz_fourcc = var_CreateGetString( p_demux, "rawaud-fourcc" );
- p_sys->fmt.i_codec = vlc_fourcc_GetCodecFromString( AUDIO_ES, psz_fourcc );
+ es_format_Init( &p_sys->fmt, AUDIO_ES,
+ vlc_fourcc_GetCodecFromString( AUDIO_ES, psz_fourcc ) );
free( psz_fourcc );
if( !p_sys->fmt.i_codec )
--
2.12.1
More information about the vlc-devel
mailing list