mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-20 21:16:24 +00:00
stream: small fix in error code path
https://bugzilla.gnome.org/show_bug.cgi?id=766612
This commit is contained in:
parent
07f17c2cce
commit
2b223af792
1 changed files with 8 additions and 4 deletions
|
@ -1251,10 +1251,14 @@ create_and_configure_udpsources_one_family (GstElement * udpsrc_out[2],
|
|||
/* ERRORS */
|
||||
error:
|
||||
{
|
||||
if (udpsrc_out[0])
|
||||
gst_object_unref (udpsrc_out[0]);
|
||||
if (udpsrc_out[1])
|
||||
gst_object_unref (udpsrc_out[1]);
|
||||
if (udpsrc_out[0]) {
|
||||
gst_element_set_state (udpsrc_out[0], GST_STATE_NULL);
|
||||
g_clear_object (&udpsrc_out[0]);
|
||||
}
|
||||
if (udpsrc_out[1]) {
|
||||
gst_element_set_state (udpsrc_out[1], GST_STATE_NULL);
|
||||
g_clear_object (&udpsrc_out[1]);
|
||||
}
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue