Commented needs_pad_switch

This commit is contained in:
David Corvoysier 2012-10-15 13:17:12 +02:00 committed by Thiago Santos
parent 54fcbf89f1
commit b9d6796cb5

View file

@ -822,6 +822,19 @@ switch_pads (GstDashDemux * demux, guint nb_adaptation_set)
}
}
/* needs_pad_switch:
*
* Figure out if the newly selected representation requires a new set
* of demuxers and decoders or if we can carry on with the existing ones.
*
* Basically, we look at the list of fragments we need to push downstream,
* and compare their caps with those of the corresponding src pads.
*
* As soon as one fragment requires a new set of caps, we need to switch
* all decoding pads to recreate a whole decoding group as we cannot
* move pads between groups (FIXME: or can we ?).
*
*/
static gboolean
needs_pad_switch (GstDashDemux * demux, GList * fragment)
{