From 99925641021b247692a7f3eb9688cc9f9d62146d Mon Sep 17 00:00:00 2001 From: Hosang Lee Date: Mon, 10 Jul 2017 16:56:26 +0900 Subject: [PATCH] adaptivedemux: Set connection-speed value as current download rate if set If connection-speed property is in use, this value should be used as the current download rate since subclasses might read it to figure out which playlist variant they will use. https://bugzilla.gnome.org/show_bug.cgi?id=784592 --- gst-libs/gst/adaptivedemux/gstadaptivedemux.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gst-libs/gst/adaptivedemux/gstadaptivedemux.c b/gst-libs/gst/adaptivedemux/gstadaptivedemux.c index a0c075b66e..48770b2d9f 100644 --- a/gst-libs/gst/adaptivedemux/gstadaptivedemux.c +++ b/gst-libs/gst/adaptivedemux/gstadaptivedemux.c @@ -2228,6 +2228,7 @@ gst_adaptive_demux_stream_update_current_bitrate (GstAdaptiveDemux * demux, if (demux->connection_speed) { GST_LOG_OBJECT (demux, "Connection-speed is set to %u kbps, using it", demux->connection_speed / 1000); + stream->current_download_rate = demux->connection_speed; return demux->connection_speed; }