Commit 4f4f9c9c authored by Wim Taymans's avatar Wim Taymans

aspectratiocrop: fix caps refcount

parent f7faea39
......@@ -165,7 +165,6 @@ gst_aspect_ratio_crop_sink_event (GstPad * pad, GstObject * parent,
gst_event_parse_caps (evt, &caps);
ret = gst_aspect_ratio_crop_set_caps (aspect_ratio_crop, caps);
gst_caps_unref (caps);
break;
}
default:
......@@ -397,7 +396,6 @@ gst_aspect_ratio_crop_get_caps (GstPad * pad, GstCaps * filter)
peer = gst_pad_get_peer (aspect_ratio_crop->sink);
if (peer == NULL) {
return_caps = gst_static_pad_template_get_caps (&src_template);
gst_caps_ref (return_caps);
} else {
GstCaps *peer_caps;
......
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