[vlc-commits] decoder: don't init an es_format_t before calling es_format_Copy()

Steve Lhomme git at videolan.org
Sun Jul 9 11:12:37 CEST 2017


vlc | branch: master | Steve Lhomme <robux4 at videolabs.io> | Sun Jul  9 10:27:47 2017 +0200| [7c6f0f35a3d266f0fc7cb59de8a0fa46a6ee666e] | committer: Rémi Denis-Courmont

decoder: don't init an es_format_t before calling es_format_Copy()

Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>

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

 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;



More information about the vlc-commits mailing list