summaryrefslogtreecommitdiff
path: root/ext/hls/m3u8.c
diff options
context:
space:
mode:
authorThiago Santos <thiagoss@osg.samsung.com>2015-06-05 09:15:34 -0300
committerThiago Santos <thiagoss@osg.samsung.com>2015-06-05 09:43:10 -0300
commit581d8c0b8d0c3d7d4261282c8b1555e43deecb6b (patch)
treeefcc43dd9048fda46fa6268730ea62276cb1afad /ext/hls/m3u8.c
parent9bcddde9bcd36dc097d49111d825a38192988fbd (diff)
downloadgstreamer-plugins-bad-581d8c0b8d0c3d7d4261282c8b1555e43deecb6b.tar.gz
Revert "hlsdemux: Simplify logic in process_manifest"
This reverts commit 4ca3a22b6b33ad8be4383063e76f79c4d346535d. The connection-speed=0 is used as a special value in the property of hlsdemux to mean 'automatic' selection, m3u8.c doesn't need to know about that as it should be as simple as possible. So this patch hides this automatic selection documented in hlsdemux into m3u8 logic and I think the gets harder to understand the code. It also makes the hlsdemux unit tests work again https://bugzilla.gnome.org/show_bug.cgi?id=749328
Diffstat (limited to 'ext/hls/m3u8.c')
-rwxr-xr-xext/hls/m3u8.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/ext/hls/m3u8.c b/ext/hls/m3u8.c
index 3f3c278e3..4b6e36289 100755
--- a/ext/hls/m3u8.c
+++ b/ext/hls/m3u8.c
@@ -1293,11 +1293,6 @@ gst_m3u8_client_get_playlist_for_bitrate (GstM3U8Client * client, guint bitrate)
GST_M3U8_CLIENT_LOCK (client);
current_variant = client->main->current_variant;
- if (bitrate == 0) {
- GST_M3U8_CLIENT_UNLOCK (client);
- return current_variant;
- }
-
/* Go to the highest possible bandwidth allowed */
while (GST_M3U8 (current_variant->data)->bandwidth <= bitrate) {
list = g_list_next (current_variant);