[vlc-commits] gst: remove dead code

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


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

gst: remove dead code

gst_atomic_queue_new() cannot return NULL.

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

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

diff --git a/modules/codec/gstreamer/gstdecode.c b/modules/codec/gstreamer/gstdecode.c
index 7cb798c6c6..f4302c9e2a 100644
--- a/modules/codec/gstreamer/gstdecode.c
+++ b/modules/codec/gstreamer/gstdecode.c
@@ -530,8 +530,6 @@ static int OpenDecoder( vlc_object_t *p_this )
     /* Queue: GStreamer thread will dump buffers into this queue,
      * DecodeBlock() will pop out the buffers from the queue */
     p_sys->p_que = gst_atomic_queue_new( 0 );
-    VLC_GST_CHECK( p_sys->p_que, NULL, "failed to create queue",
-            VLC_ENOMEM );
 
     p_sys->p_decode_src = gst_element_factory_make( "appsrc", NULL );
     VLC_GST_CHECK( p_sys->p_decode_src, NULL, "appsrc not found",



More information about the vlc-commits mailing list