mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-20 00:31:13 +00:00
event: fix some event leaks
This commit is contained in:
parent
2940249a84
commit
28f67f4847
2 changed files with 3 additions and 0 deletions
|
@ -504,6 +504,7 @@ gst_visual_sink_event (GstPad * pad, GstEvent * event)
|
|||
|
||||
gst_event_parse_caps (event, &caps);
|
||||
res = gst_visual_sink_setcaps (pad, caps);
|
||||
gst_event_unref (event);
|
||||
break;
|
||||
}
|
||||
case GST_EVENT_SEGMENT:
|
||||
|
|
|
@ -382,6 +382,8 @@ gst_basertppayload_event_default (GstBaseRTPPayload * basertppayload,
|
|||
basertppayload_class = GST_BASE_RTP_PAYLOAD_GET_CLASS (basertppayload);
|
||||
if (basertppayload_class->set_caps)
|
||||
res = basertppayload_class->set_caps (basertppayload, caps);
|
||||
|
||||
gst_event_unref (event);
|
||||
break;
|
||||
}
|
||||
case GST_EVENT_SEGMENT:
|
||||
|
|
Loading…
Reference in a new issue