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
This commit is contained in:
Luis de Bethencourt 2016-02-09 10:34:22 +00:00
parent 4922b7f6b2
commit fb9e957cc2

View 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;
}