dashdemux: fixed getting representation based on max bandwidth
authorFlorin Apostol <florin.apostol@oregan.net>
Thu, 18 Jun 2015 12:08:25 +0000 (13:08 +0100)
committerThiago Santos <thiagoss@osg.samsung.com>
Thu, 18 Jun 2015 14:29:45 +0000 (11:29 -0300)
commit9f56cc27aba2ccd57eb3896a3a490302da27d9d9
tree85ead759640836dca9e0e7a3d09e3bef6bdec50b
parent6b2800e324ec237ce086cdf28624292f0af05a43
dashdemux: fixed getting representation based on max bandwidth

The gst_mpdparser_get_rep_idx_with_max_bandwidth function assumes
representations are ordered by bandwidth and incorrectly returns the
first one when wanting the one with minimum bandwidth.

Corrected gst_mpdparser_get_rep_idx_with_max_bandwidth function to get the
correct representation in case max_bandwidth parameter is 0.

https://bugzilla.gnome.org/show_bug.cgi?id=751153
ext/dash/gstmpdparser.c
tests/check/elements/dash_mpd.c