gint64 percent;
gboolean post = FALSE;
- if (!queue->use_buffering || queue->high_percent <= 0)
+ if (queue->high_percent <= 0)
return;
#define GET_PERCENT(format,alt_max) ((queue->max_level.format) > 0 ? (queue->cur_level.format) * 100 / ((alt_max) > 0 ? MIN ((alt_max), (queue->max_level.format)) : (queue->max_level.format)) : 0)
update_cur_level (queue, queue->current);
/* update the buffering status */
- update_buffering (queue);
+ if (queue->use_buffering)
+ update_buffering (queue);
GST_INFO_OBJECT (queue, "cur_level.bytes %u (max %" G_GUINT64_FORMAT ")",
queue->cur_level.bytes, QUEUE_MAX_BYTES (queue));
if (item) {
/* update the buffering status */
- update_buffering (queue);
+ if (queue->use_buffering)
+ update_buffering (queue);
if (QUEUE_IS_USING_QUEUE (queue)) {
g_queue_push_tail (queue->queue, item);
/* update the byterate stats */
update_out_rates (queue);
/* update the buffering */
- update_buffering (queue);
+ if (queue->use_buffering)
+ update_buffering (queue);
} else if (GST_IS_EVENT (item)) {
GstEvent *event = GST_EVENT_CAST (item);