mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-10-03 01:02:19 +00:00
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:
parent
909f494a5a
commit
052d1c7b8b
1 changed files with 0 additions and 23 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue