mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-30 13:41:48 +00:00
gst/gstelement.c: Avoid leaking the parent ref when we fail changing the state of the element using gst_element_sync_...
Original commit message from CVS: Based on patch by: Antoine Tremblay <hexa00 at gmail dot com> * gst/gstelement.c: (gst_element_sync_state_with_parent): Avoid leaking the parent ref when we fail changing the state of the element using gst_element_sync_state_with_parent(). Fixes #551978.
This commit is contained in:
parent
e769a7a0e4
commit
607fd58a5e
2 changed files with 9 additions and 0 deletions
|
@ -1,3 +1,11 @@
|
|||
2008-09-14 Wim Taymans <wim.taymans@collabora.co.uk>
|
||||
|
||||
Based on patch by: Antoine Tremblay <hexa00 at gmail dot com>
|
||||
|
||||
* gst/gstelement.c: (gst_element_sync_state_with_parent):
|
||||
Avoid leaking the parent ref when we fail changing the state of the
|
||||
element using gst_element_sync_state_with_parent(). Fixes #551978.
|
||||
|
||||
2008-09-11 Tim-Philipp Müller <tim.muller at collabora co uk>
|
||||
|
||||
* docs/manual/intro-motivation.xml::
|
||||
|
|
|
@ -1840,6 +1840,7 @@ failed:
|
|||
GST_CAT_DEBUG_OBJECT (GST_CAT_STATES, element,
|
||||
"syncing state failed (%s)",
|
||||
gst_element_state_change_return_get_name (ret));
|
||||
gst_object_unref (parent);
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue