basesink: plug caps leak

This commit is contained in:
Mark Nauwelaerts 2012-04-13 11:58:49 +02:00
parent 7485b66d06
commit dad68cb180

View file

@ -4546,6 +4546,7 @@ gst_base_sink_default_query (GstBaseSink * basesink, GstQuery * query)
gst_query_parse_accept_caps (query, &caps);
allowed = gst_base_sink_query_caps (basesink, basesink->sinkpad, NULL);
subset = gst_caps_is_subset (caps, allowed);
gst_caps_unref (allowed);
gst_query_set_accept_caps_result (query, subset);
res = TRUE;
break;