mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-01 21:18:52 +00:00
urisourcebin: Avoid unreffing a pad we are not owning
expose_output_pad takes ownership of the pad.
This commit is contained in:
parent
faaa2423c2
commit
f0399ed435
1 changed files with 5 additions and 2 deletions
|
@ -1454,13 +1454,16 @@ analyse_source (GstURISourceBin * urisrc, gboolean * is_raw,
|
||||||
gst_object_unref (pad);
|
gst_object_unref (pad);
|
||||||
pad = slot->srcpad;
|
pad = slot->srcpad;
|
||||||
} else {
|
} else {
|
||||||
pad = create_output_pad (urisrc, pad);
|
GstPad *tmppad = create_output_pad (urisrc, pad);
|
||||||
|
gst_object_unref (pad);
|
||||||
|
|
||||||
|
pad = tmppad;
|
||||||
}
|
}
|
||||||
GST_URI_SOURCE_BIN_UNLOCK (urisrc);
|
GST_URI_SOURCE_BIN_UNLOCK (urisrc);
|
||||||
expose_output_pad (urisrc, pad);
|
expose_output_pad (urisrc, pad);
|
||||||
|
} else {
|
||||||
gst_object_unref (pad);
|
gst_object_unref (pad);
|
||||||
}
|
}
|
||||||
gst_object_unref (pad);
|
|
||||||
g_value_reset (&item);
|
g_value_reset (&item);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue