tests/icles/dccp: Release reference to parent

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=732977
This commit is contained in:
Sebastian Rasmussen 2014-07-06 11:28:34 +02:00 committed by Tim-Philipp Müller
parent ab29217726
commit c534ad8e81
2 changed files with 2 additions and 0 deletions

View file

@ -62,6 +62,7 @@ start_dccpserversink_pipe (GstElement * object, gint socket, gpointer data)
GstElement *pipelinesink =
(GstElement *) gst_element_get_parent (dccpserversink);
gst_element_set_state (pipelinesink, GST_STATE_PLAYING);
gst_object_unref (pipelinesink);
}

View file

@ -62,6 +62,7 @@ start_dccpclientsrc_pipe (GstElement * object, gint socket, gpointer data)
GstElement *pipelinesrc =
(GstElement *) gst_element_get_parent (dccpclientsrc);
gst_element_set_state (pipelinesrc, GST_STATE_PLAYING);
gst_object_unref (pipelinesrc);
}