GNOME Bugzilla – Bug 758891
queue2 buffers huge data than required
Last modified: 2017-11-23 17:12:13 UTC
queue2 is buffering huge data as compared to what is required. when a 5 Mbps (bits per second) stream is played from http, and http server is aloowing at 20MBps (160mbps) then if we set a time limit for buffering on queue2 for example 500ms then queue2 buffers approx 10 MB (10 M Bytes or 80 Mbits) but it should have buffered only 2.5 Mb or 2.5 MB. issue is because, queue2 set current level as per in rate instead of outrate. since decoding will happen on out rate only not more than that so queue2 should buffer as per output rate not input rate. input rate may go too high or low based on network bandwidth.
Created attachment 316576 [details] [review] patch to use out rate for buffering buffering works fine with attached patch and no extra memory is consumed. so it more memory efficient.
please review the patch and let me know your feedback. on my embedded platform, i see a lot memory saved with this and also buffering is sufficient.
This seems sensible to me. There might be odd values at start if it bursts, though.
In fact, it seems it is supposed to be that way, see https://bugzilla.gnome.org/show_bug.cgi?id=763801
*** This bug has been marked as a duplicate of bug 763801 ***