From eaf7582b8fd2669f707bf36fb95921a04dc5f115 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Fri, 28 Aug 2009 17:49:11 +0200 Subject: [PATCH] queue: whitespace fixes --- plugins/elements/gstqueue.c | 4 ++-- plugins/elements/gstqueue.h | 28 ++++++++++++++-------------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/plugins/elements/gstqueue.c b/plugins/elements/gstqueue.c index 4200605afd..4bb9ee4cfc 100644 --- a/plugins/elements/gstqueue.c +++ b/plugins/elements/gstqueue.c @@ -585,7 +585,7 @@ apply_buffer (GstQueue * queue, GstBuffer * buffer, GstSegment * segment, timestamp = GST_BUFFER_TIMESTAMP (buffer); duration = GST_BUFFER_DURATION (buffer); - /* if no timestamp is set, assume it's continuous with the previous + /* if no timestamp is set, assume it's continuous with the previous * time */ if (timestamp == GST_CLOCK_TIME_NONE) timestamp = segment->last_stop; @@ -640,7 +640,7 @@ gst_queue_locked_enqueue (GstQueue * queue, gpointer item) /* if this is the first buffer update the end side as well, but without the * duration. */ /* FIXME : This will only be useful for current time level if the - * source task is running, which is not the case for ex in + * source task is running, which is not the case for ex in * gstplaybasebin when pre-rolling. * See #482147 */ /* if (queue->cur_level.buffers == 1) */ diff --git a/plugins/elements/gstqueue.h b/plugins/elements/gstqueue.h index e2f65d95d0..e545e39c61 100644 --- a/plugins/elements/gstqueue.h +++ b/plugins/elements/gstqueue.h @@ -40,9 +40,9 @@ G_BEGIN_DECLS (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_QUEUE)) enum { - GST_QUEUE_NO_LEAK = 0, - GST_QUEUE_LEAK_UPSTREAM = 1, - GST_QUEUE_LEAK_DOWNSTREAM = 2 + GST_QUEUE_NO_LEAK = 0, + GST_QUEUE_LEAK_UPSTREAM = 1, + GST_QUEUE_LEAK_DOWNSTREAM = 2 }; typedef struct _GstQueue GstQueue; @@ -94,18 +94,18 @@ struct _GstQueue { GQueue *queue; GstQueueSize - cur_level, /* currently in the queue */ - max_size, /* max. amount of data allowed in the queue */ - min_threshold, /* min. amount of data required to wake reader */ + cur_level, /* currently in the queue */ + max_size, /* max. amount of data allowed in the queue */ + min_threshold, /* min. amount of data required to wake reader */ orig_min_threshold; /* Original min.threshold, for reset in EOS */ /* whether we leak data, and at which end */ gint leaky; - GMutex *qlock; /* lock for queue (vs object lock) */ - GCond *item_add; /* signals buffers now available for reading */ - GCond *item_del; /* signals space now available for writing */ - + GMutex *qlock; /* lock for queue (vs object lock) */ + GCond *item_add; /* signals buffers now available for reading */ + GCond *item_del; /* signals space now available for writing */ + gboolean head_needs_discont, tail_needs_discont; }; @@ -114,11 +114,11 @@ struct _GstQueueClass { /* signals - 'running' is called from both sides * which might make it sort of non-useful... */ - void (*underrun) (GstQueue *queue); - void (*running) (GstQueue *queue); - void (*overrun) (GstQueue *queue); + void (*underrun) (GstQueue *queue); + void (*running) (GstQueue *queue); + void (*overrun) (GstQueue *queue); - void (*pushing) (GstQueue *queue); + void (*pushing) (GstQueue *queue); }; GType gst_queue_get_type (void);