hlsdemux: update current variant if connection speed is set
authorMaroš Ondrášek <mx3ldev@gmail.com>
Wed, 2 Dec 2015 10:01:53 +0000 (11:01 +0100)
committerSebastian Dröge <sebastian@centricular.com>
Wed, 2 Dec 2015 12:39:12 +0000 (14:39 +0200)
commit905158a055d8020cf6be79a5a9fbfc6979e37639
treefff67416f2ab120703b3dd1c0c9769190ff2ba3c
parent92d926d7331bda02b2087cb1fb07d4e84bb196e3
hlsdemux: update current variant if connection speed is set

If connection speed is set, playlist according
to connection speed is selected as current playlist.

Problem is that the current variant of main playlist still
points to previously set variant.
If previously set variant doesn't correspond to current
playlist, then it causes unnecessary change of playlist
to the same playlist after first fragment is downloaded,
because of not updated current variant.

To fix this, we need to make sure that current variant
of main playlist corresponds to the current playlist

https://bugzilla.gnome.org/show_bug.cgi?id=758946
ext/hls/gsthlsdemux.c