event: fix some event leaks
This commit is contained in:
parent
2940249a84
commit
28f67f4847
@ -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…
x
Reference in New Issue
Block a user