Commit 28f67f48 authored by Wim Taymans's avatar Wim Taymans
Browse files

event: fix some event leaks

parent 2940249a
......@@ -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:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment