mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 11:10:37 +00:00
gst/playback/gstplaybin.c: Correct refcounting in send_event() function. Previously was wrong if the first sink was u...
Original commit message from CVS: * gst/playback/gstplaybin.c: (gst_play_bin_send_event): Correct refcounting in send_event() function. Previously was wrong if the first sink was unable to handle the event.
This commit is contained in:
parent
38b46073af
commit
b0f967265a
2 changed files with 9 additions and 0 deletions
|
@ -1,3 +1,9 @@
|
|||
2005-10-04 Michael Smith <msmith@fluendo.com>
|
||||
|
||||
* gst/playback/gstplaybin.c: (gst_play_bin_send_event):
|
||||
Correct refcounting in send_event() function. Previously was wrong
|
||||
if the first sink was unable to handle the event.
|
||||
|
||||
2005-10-03 Thomas Vander Stichele <thomas at apestaart dot org>
|
||||
|
||||
* configure.ac:
|
||||
|
|
|
@ -866,12 +866,15 @@ gst_play_bin_send_event (GstElement * element, GstEvent * event)
|
|||
while (sinks) {
|
||||
GstElement *sink = GST_ELEMENT_CAST (sinks->data);
|
||||
|
||||
gst_event_ref (event);
|
||||
if ((res = gst_element_send_event (sink, event)))
|
||||
break;
|
||||
|
||||
sinks = g_list_next (sinks);
|
||||
}
|
||||
|
||||
gst_event_unref (event);
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue