decodebin2: do not handle the next-groups list as if it was a single item
authorThiago Santos <thiago.sousa.santos@collabora.com>
Wed, 6 Feb 2013 14:09:52 +0000 (11:09 -0300)
committerThiago Santos <thiago.sousa.santos@collabora.com>
Tue, 23 Apr 2013 13:32:19 +0000 (10:32 -0300)
commit6382d4c0adacf2c154f024054944acd5977cafef
treee25b1df6646c1782a75a4904d26f722504a55cc4
parent054ffc6e2b0171937e6693f37f74e2d32d404017
decodebin2: do not handle the next-groups list as if it was a single item

Decodebin2's chains store a next_groups list that was being handled as
it could only have a single element. This is true for most of the
chaining streams scenarios where streams change not very often.

In more stressfull changing scenarios, like adaptive streams, those
changes can happen very often, and in short time intervals. This could
confuse decodebin2 as this list was always being used as a single
element list.

This patches makes it handle as a real list, using iteration instead
of picking the first element as the correct one always.
gst/playback/gstdecodebin2.c