mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
segmentclip: Keep a reference of events until the event is parsed
This commit is contained in:
parent
b2c90da38e
commit
7858d65b4a
1 changed files with 3 additions and 1 deletions
|
@ -271,7 +271,7 @@ gst_segment_clip_event (GstPad * pad, GstEvent * event)
|
|||
GST_LOG_OBJECT (pad, "Got %s event", GST_EVENT_TYPE_NAME (event));
|
||||
|
||||
otherpad = (pad == self->srcpad) ? self->sinkpad : self->srcpad;
|
||||
ret = gst_pad_push_event (otherpad, event);
|
||||
ret = gst_pad_push_event (otherpad, gst_event_ref (event));
|
||||
|
||||
if (ret) {
|
||||
switch (GST_EVENT_TYPE (event)) {
|
||||
|
@ -300,6 +300,8 @@ gst_segment_clip_event (GstPad * pad, GstEvent * event)
|
|||
}
|
||||
}
|
||||
|
||||
gst_event_unref (event);
|
||||
|
||||
gst_object_unref (self);
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue