[vlc-commits] gst: remove bogus error message

Rémi Denis-Courmont git at videolan.org
Fri Dec 4 15:47:34 UTC 2020


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Fri Dec  4 17:40:10 2020 +0200| [e7afa8c45d33b93b42b6928675e120c3a62039a7] | committer: Rémi Denis-Courmont

gst: remove bogus error message

A NULL list means there are no matching items. It is not an error per
se. In practice,  it will lead to an error later on, which will be
handled properly by existing code.

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

 modules/codec/gstreamer/gstdecode.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/modules/codec/gstreamer/gstdecode.c b/modules/codec/gstreamer/gstdecode.c
index b57464d4a5..7cb798c6c6 100644
--- a/modules/codec/gstreamer/gstdecode.c
+++ b/modules/codec/gstreamer/gstdecode.c
@@ -496,7 +496,6 @@ static int OpenDecoder( vlc_object_t *p_this )
     /* Get the list of all the available gstreamer decoders */
     p_list = gst_element_factory_list_get_elements(
             GST_ELEMENT_FACTORY_TYPE_DECODER, GST_RANK_MARGINAL );
-    VLC_GST_CHECK( p_list, NULL, "no decoder list found", VLC_ENOMOD );
     if( !dbin )
     {
         GList *p_l;



More information about the vlc-commits mailing list