hlsdemux: Fix comparison in bitrate selection

This commit is contained in:
Sebastian Dröge 2014-03-09 19:38:39 +01:00
parent a6bfde1ea6
commit bd54a212d3

View file

@ -823,7 +823,7 @@ gst_m3u8_client_get_playlist_for_bitrate (GstM3U8Client * client, guint bitrate)
current_variant = client->main->current_variant;
/* Go to the highest possible bandwidth allowed */
while (GST_M3U8 (current_variant->data)->bandwidth < bitrate) {
while (GST_M3U8 (current_variant->data)->bandwidth <= bitrate) {
list = g_list_next (current_variant);
if (!list)
break;