mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-02 14:20:06 +00:00
examples: client-rtpaux: Release reference to parent when done
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=732976
This commit is contained in:
parent
c2614e5253
commit
5cd0261f77
1 changed files with 4 additions and 2 deletions
|
@ -226,10 +226,12 @@ handle_new_stream (GstElement * element, GstPad * newPad, gpointer data)
|
|||
|
||||
if (g_str_has_prefix (padName, myPrefix)) {
|
||||
GstPad *outputSinkPad;
|
||||
GstElement *parent;
|
||||
|
||||
gst_bin_add (GST_BIN (gst_element_get_parent (session->rtpbin)),
|
||||
session->output);
|
||||
parent = GST_ELEMENT (gst_element_get_parent (session->rtpbin));
|
||||
gst_bin_add (GST_BIN (parent), session->output);
|
||||
gst_element_sync_state_with_parent (session->output);
|
||||
gst_object_unref (parent);
|
||||
|
||||
outputSinkPad = gst_element_get_static_pad (session->output, "sink");
|
||||
g_assert_cmpint (gst_pad_link (newPad, outputSinkPad), ==, GST_PAD_LINK_OK);
|
||||
|
|
Loading…
Reference in a new issue