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:
Sebastian Dröge 2013-05-28 13:23:40 +02:00
parent a4ec6fe0b7
commit e482b5b8e6

View file

@ -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) {