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
@ -4250,7 +4250,12 @@ done:
|
|||||||
if (!result)
|
if (!result)
|
||||||
return FALSE;
|
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));
|
GstPad *target = gst_ghost_pad_get_target (GST_GHOST_PAD (pad));
|
||||||
|
|
||||||
if (target) {
|
if (target) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user