GNOME Bugzilla – Bug 446572
[queue2] Division by zero
Last modified: 2007-06-12 08:38:42 UTC
Please describe the problem: When high_percent property is set to zero, a division by zero occurs. (you have to set use_buffering to true, also) Steps to reproduce: 1. 2. 3. Actual results: Expected results: Does this happen every time? Yes Other information:
Created attachment 89784 [details] [review] Fixes the bug. "percent = percent * 100 / queue->high_percent;" this line was the problem. This patch considers that if the high_percent is <= 0, it's the same as not use buffering, fixing the problem.
Patches by: Thiago Sousa Santos <thiagossantos at gmail dot com> * gst/playback/gstqueue2.c: (update_buffering), (gst_queue_locked_enqueue): Fix a division by zero when the max percent is <= 0. Fixes #446572. also update the buffering status when receiving events. Fixes #446551.