rtspclientsink: remove check for impossible condition
authorLuis de Bethencourt <luisbg@osg.samsung.com>
Tue, 9 Feb 2016 10:34:22 +0000 (10:34 +0000)
committerLuis de Bethencourt <luisbg@osg.samsung.com>
Tue, 9 Feb 2016 10:36:56 +0000 (10:36 +0000)
Goto error label checks stream to see if it needs to be unreferenced before
returning, but this goto jumps happens before the stream is ever set, so it
will always be NULL in this error label.

CID #1352034

gst/rtsp-sink/gstrtspclientsink.c

index 8c378eb..e7706a4 100644 (file)
@@ -937,8 +937,6 @@ no_free_pt:
   GST_ELEMENT_ERROR (sink, RESOURCE, NO_SPACE_LEFT, (NULL),
       ("Ran out of dynamic payload types."));
 
-  if (stream)
-    g_object_unref (stream);
   return NULL;
 }