From fb9e957cc2e98b3e8a43da85a5c4c62b760b08cc Mon Sep 17 00:00:00 2001 From: Luis de Bethencourt Date: Tue, 9 Feb 2016 10:34:22 +0000 Subject: rtspclientsink: remove check for impossible condition 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 | 2 -- 1 file changed, 2 deletions(-) diff --git a/gst/rtsp-sink/gstrtspclientsink.c b/gst/rtsp-sink/gstrtspclientsink.c index 8c378eb..e7706a4 100644 --- a/gst/rtsp-sink/gstrtspclientsink.c +++ b/gst/rtsp-sink/gstrtspclientsink.c @@ -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; } -- cgit v1.2.3