[vlc-devel] [PATCH 4/4] decoder: don't init an es_format_t before calling es_format_Copy()

Steve Lhomme robux4 at videolabs.io
Sun Jul 9 10:27:47 CEST 2017


---
 src/input/decoder.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/input/decoder.c b/src/input/decoder.c
index 9e1b01be92..9678a1ed5f 100644
--- a/src/input/decoder.c
+++ b/src/input/decoder.c
@@ -217,7 +217,6 @@ static int ReloadDecoder( decoder_t *p_dec, bool b_packetizer,
 {
     /* Copy p_fmt since it can be destroyed by UnloadDecoder */
     es_format_t fmt_in;
-    es_format_Init( &fmt_in, p_fmt->i_cat, 0 );
     if( es_format_Copy( &fmt_in, p_fmt ) != VLC_SUCCESS )
     {
         p_dec->p_owner->error = true;
-- 
2.12.1



More information about the vlc-devel mailing list