playsinkconvertbin: remove accept-caps handling

Just let the internal element of the bin do it instead of forcing a
caps query to do it.
This commit is contained in:
Thiago Santos 2015-08-14 05:48:31 -03:00
parent 909f494a5a
commit 052d1c7b8b

View file

@ -456,19 +456,6 @@ gst_play_sink_convert_bin_getcaps (GstPad * pad, GstCaps * filter)
return ret;
}
static gboolean
gst_play_sink_convert_bin_acceptcaps (GstPad * pad, GstCaps * caps)
{
GstCaps *allowed_caps;
gboolean ret;
allowed_caps = gst_pad_query_caps (pad, NULL);
ret = gst_caps_is_subset (caps, allowed_caps);
gst_caps_unref (allowed_caps);
return ret;
}
static gboolean
gst_play_sink_convert_bin_query (GstPad * pad, GstObject * parent,
GstQuery * query)
@ -476,16 +463,6 @@ gst_play_sink_convert_bin_query (GstPad * pad, GstObject * parent,
gboolean res = FALSE;
switch (GST_QUERY_TYPE (query)) {
case GST_QUERY_ACCEPT_CAPS:
{
GstCaps *caps;
gst_query_parse_accept_caps (query, &caps);
gst_query_set_accept_caps_result (query,
gst_play_sink_convert_bin_acceptcaps (pad, caps));
res = TRUE;
break;
}
case GST_QUERY_CAPS:
{
GstCaps *filter, *caps;