diff options
author | Luis de Bethencourt <luisbg@osg.samsung.com> | 2016-02-09 10:34:22 +0000 |
---|---|---|
committer | Luis de Bethencourt <luisbg@osg.samsung.com> | 2016-02-09 10:36:56 +0000 |
commit | fb9e957cc2e98b3e8a43da85a5c4c62b760b08cc (patch) | |
tree | 22697c0c9b7e4352ea7eea58e2c7d44fc48480a2 | |
parent | 4922b7f6b2c085a848e14b78a826c23f6d4767b6 (diff) |
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
-rw-r--r-- | gst/rtsp-sink/gstrtspclientsink.c | 2 |
1 files changed, 0 insertions, 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; } |