diff --git a/ext/hls/m3u8.c b/ext/hls/m3u8.c index 874ffa1a75..7f79e2560d 100644 --- a/ext/hls/m3u8.c +++ b/ext/hls/m3u8.c @@ -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;