mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
inputselector: always proxy caps query
Otherwise it would only be proxied for the active pad which can lead upstream to use an incompatible caps for the downstream element. Even if a reconfigure event is sent upstream when the pad is activated, this will save the caps reconfiguration if it is already using an acceptable caps.
This commit is contained in:
parent
f88a981997
commit
3001f3b433
1 changed files with 5 additions and 0 deletions
|
@ -588,8 +588,13 @@ static gboolean
|
|||
gst_selector_pad_query (GstPad * pad, GstObject * parent, GstQuery * query)
|
||||
{
|
||||
gboolean res = FALSE;
|
||||
GstInputSelector *self = (GstInputSelector *) parent;
|
||||
|
||||
switch (GST_QUERY_TYPE (query)) {
|
||||
case GST_QUERY_CAPS:
|
||||
/* always proxy caps query, regardless of active pad or not */
|
||||
res = gst_pad_peer_query (self->srcpad, query);
|
||||
break;
|
||||
case GST_QUERY_ALLOCATION:{
|
||||
GstPad *active_sinkpad;
|
||||
GstInputSelector *sel = GST_INPUT_SELECTOR (parent);
|
||||
|
|
Loading…
Reference in a new issue