mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-09-08 21:28:45 +00:00
[MOVED FROM GST-P-FARSIGHT] Unref event instead of leaking it
20080418192941-3e2dc-352e25f6ab291612be1dc139790303a1333f65d7.gz
This commit is contained in:
parent
696a8dc188
commit
244bf6f250
1 changed files with 2 additions and 2 deletions
|
@ -524,6 +524,8 @@ gst_live_adder_sink_event (GstPad * pad, GstEvent * event)
|
|||
gst_event_parse_new_segment_full (event, &update, &rate, &arate, &format,
|
||||
&start, &stop, &time);
|
||||
|
||||
gst_event_unref (event);
|
||||
|
||||
/* we need time for now */
|
||||
if (format != GST_FORMAT_TIME)
|
||||
goto newseg_wrong_format;
|
||||
|
@ -540,8 +542,6 @@ gst_live_adder_sink_event (GstPad * pad, GstEvent * event)
|
|||
gst_segment_set_newsegment_full (&padprivate->segment, update,
|
||||
rate, arate, format, start, stop, time);
|
||||
GST_OBJECT_UNLOCK (adder);
|
||||
|
||||
gst_event_unref (event);
|
||||
break;
|
||||
}
|
||||
case GST_EVENT_FLUSH_START:
|
||||
|
|
Loading…
Reference in a new issue