[vlc-commits] [Git][videolan/vlc][master] decoder: remove impossible condition

Jean-Baptiste Kempf (@jbk) gitlab at videolan.org
Fri Nov 24 19:27:52 UTC 2023



Jean-Baptiste Kempf pushed to branch master at VideoLAN / VLC


Commits:
597400f1 by Thomas Guillem at 2023-11-24T18:23:31+00:00
decoder: remove impossible condition

vlc_input_decoder_New() only return a vlc_input_decoder_t with a valid
module.

- - - - -


1 changed file:

- src/input/decoder.c


Changes:

=====================================
src/input/decoder.c
=====================================
@@ -2573,13 +2573,7 @@ vlc_input_decoder_CreateSubDec(vlc_input_decoder_t *p_owner,
         vlc_mutex_unlock(&p_owner->subdecs.lock);
         return NULL;
     }
-    else if( !p_ccowner->dec.p_module )
-    {
-        DecoderUnsupportedCodec( p_dec, cfg->fmt, true );
-        vlc_input_decoder_Delete(p_ccowner);
-        vlc_mutex_unlock(&p_owner->subdecs.lock);
-        return NULL;
-    }
+    assert(p_ccowner->dec.p_module != NULL);
 
     vlc_list_append(&p_ccowner->node, &p_owner->subdecs.list);
     p_owner->cc.count++;



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/597400f16506461777ae74173ef208b6d77e614d

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/597400f16506461777ae74173ef208b6d77e614d
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list