mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 14:56:36 +00:00
playbin: In autoplug-queries, add the actual decoder/parser/etc template caps
Add the actual decoder/parser/etc caps at the very end to make sure we don't cause empty caps to be returned, e.g. if a parser asks us but a decoder is required after it because no sink can handle the format directly.
This commit is contained in:
parent
a4ec6fe0b7
commit
e482b5b8e6
1 changed files with 6 additions and 1 deletions
|
@ -4250,7 +4250,12 @@ done:
|
|||
if (!result)
|
||||
return FALSE;
|
||||
|
||||
if (0) {
|
||||
/* Add the actual decoder/parser/etc caps at the very end to
|
||||
* make sure we don't cause empty caps to be returned, e.g.
|
||||
* if a parser asks us but a decoder is required after it
|
||||
* because no sink can handle the format directly.
|
||||
*/
|
||||
{
|
||||
GstPad *target = gst_ghost_pad_get_target (GST_GHOST_PAD (pad));
|
||||
|
||||
if (target) {
|
||||
|
|
Loading…
Reference in a new issue