mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 19:51:11 +00:00
decodebin3: Don't intercept queries if no parsebin present
If we don't use a parsebin, we forward the queries as-is from upstream. There is no reconfiguration possible within identity. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3754>
This commit is contained in:
parent
1a30ed8113
commit
34ea792881
1 changed files with 32 additions and 28 deletions
|
@ -320,8 +320,11 @@ parse_chain_output_probe (GstPad * pad, GstPadProbeInfo * info,
|
|||
break;
|
||||
}
|
||||
} else if (GST_IS_QUERY (GST_PAD_PROBE_INFO_DATA (info))) {
|
||||
if (input->input && input->input->identity) {
|
||||
GST_DEBUG_OBJECT (pad, "Letting query through");
|
||||
} else {
|
||||
GstQuery *q = GST_PAD_PROBE_INFO_QUERY (info);
|
||||
GST_DEBUG_OBJECT (pad, "Seeing query %s", GST_QUERY_TYPE_NAME (q));
|
||||
GST_DEBUG_OBJECT (pad, "Seeing query %" GST_PTR_FORMAT, q);
|
||||
/* If we have a parser, we want to reply to the caps query */
|
||||
/* FIXME: Set a flag when the input stream is created for
|
||||
* streams where we shouldn't reply to these queries */
|
||||
|
@ -351,6 +354,7 @@ parse_chain_output_probe (GstPad * pad, GstPadProbeInfo * info,
|
|||
ret = GST_PAD_PROBE_HANDLED;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue