summaryrefslogtreecommitdiff
path: root/gst
diff options
context:
space:
mode:
authorThiago Santos <thiagoss@osg.samsung.com>2015-08-14 05:48:31 -0300
committerThiago Santos <thiagoss@osg.samsung.com>2015-08-14 05:48:31 -0300
commit052d1c7b8b1e3c3fc7184d3eeaf687e4d2e14fbd (patch)
tree336122bcba515958f8c98ff6717be31dddf91793 /gst
parent909f494a5a7f901fcd3f203173370ce45bed0b13 (diff)
playsinkconvertbin: remove accept-caps handling
Just let the internal element of the bin do it instead of forcing a caps query to do it.
Diffstat (limited to 'gst')
-rw-r--r--gst/playback/gstplaysinkconvertbin.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/gst/playback/gstplaysinkconvertbin.c b/gst/playback/gstplaysinkconvertbin.c
index 04fd4e98e..af2333fce 100644
--- a/gst/playback/gstplaysinkconvertbin.c
+++ b/gst/playback/gstplaysinkconvertbin.c
@@ -457,35 +457,12 @@ gst_play_sink_convert_bin_getcaps (GstPad * pad, GstCaps * filter)
}
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)
{
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;