[vlc-devel] [PATCH] decoder: don't return a decoder owner if loading the decoder fails

Steve Lhomme robux4 at ycbcr.xyz
Wed Sep 4 12:19:00 CEST 2019


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

diff --git a/src/input/decoder.c b/src/input/decoder.c
index b208eba2628..697feb147c7 100644
--- a/src/input/decoder.c
+++ b/src/input/decoder.c
@@ -1868,7 +1868,7 @@ static struct decoder_owner * CreateDecoder( vlc_object_t *p_parent,
 
     /* Find a suitable decoder/packetizer module */
     if( LoadDecoder( p_dec, p_sout != NULL, fmt ) )
-        return p_owner;
+        return NULL;
 
     assert( p_dec->fmt_in.i_cat == p_dec->fmt_out.i_cat && fmt->i_cat == p_dec->fmt_in.i_cat);
 
-- 
2.17.1



More information about the vlc-devel mailing list