After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 784592 - adaptivedemux: Set connection-speed value as current download rate if set
adaptivedemux: Set connection-speed value as current download rate if set
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
git master
Other Linux
: Normal normal
: 1.15.1
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2017-07-06 01:03 UTC by Hosang Lee
Modified: 2018-05-28 14:04 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
hlsdemux: Return connection-speed value as bitrate if set (974 bytes, patch)
2017-07-06 01:03 UTC, Hosang Lee
none Details | Review
adaptivedemux: Set connection-speed value as current download rate if set (1.01 KB, patch)
2017-07-10 08:06 UTC, Hosang Lee
none Details | Review
adaptivedemux: Set connection-speed value as current download rate if set (1.06 KB, patch)
2017-07-11 06:44 UTC, Hosang Lee
committed Details | Review

Description Hosang Lee 2017-07-06 01:03:43 UTC
Created attachment 354986 [details] [review]
hlsdemux: Return connection-speed value as bitrate if set

hlsdemux: Return connection-speed value as bitrate if set

If connection-speed property has been set, this value should be
returned as the bitrate instead of the current download rate.
Comment 1 Sebastian Dröge (slomo) 2017-07-10 07:11:40 UTC
Comment on attachment 354986 [details] [review]
hlsdemux: Return connection-speed value as bitrate if set

Shouldn't this be rather done at the adaptivedemux layer? That's where the property comes from.
Comment 2 Hosang Lee 2017-07-10 08:06:46 UTC
Created attachment 355238 [details] [review]
adaptivedemux: Set connection-speed value as current download rate if set

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.
Comment 3 Hosang Lee 2017-07-10 08:09:36 UTC
Thanks for your review.
As you've suggested, I've updated the changes to be done in the adaptivedemux.

The current_download_rate is checked in hlsdemux - gst_hls_demux_get_bitrate(), and if a fixed connection-speed is in use, it should return the fixed value so that the proper bitrate playlist is maintained.
Comment 4 Hosang Lee 2017-07-11 06:44:21 UTC
Created attachment 355312 [details] [review]
adaptivedemux: Set connection-speed value as current download rate if set
Comment 5 Edward Hervey 2018-05-28 14:03:44 UTC
Thanks ! Reworded the commit message a tiny bit to make it 100%
clear why that change is needed.

Attachment 355312 [details] pushed as 9992564 - adaptivedemux: Set connection-speed value as current download rate if set