Commit 052d1c7b authored by Thiago Santos's avatar Thiago Santos
Browse files

playsinkconvertbin: remove accept-caps handling

Just let the internal element of the bin do it instead of forcing a
caps query to do it.
parent 909f494a
......@@ -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)) {
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;
GstCaps *filter, *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