libs/gst/base/gstdataqueue.c: Eliminate tabs and trailing comma in enum list; fix some typos.

Original commit message from CVS:
* libs/gst/base/gstdataqueue.c:
Eliminate tabs and trailing comma in enum list; fix some typos.
This commit is contained in:
Tim-Philipp Müller 2007-05-24 12:19:01 +00:00
parent 74fb9f0fe2
commit fda3f3facf
2 changed files with 27 additions and 22 deletions

View file

@ -1,3 +1,8 @@
2007-05-24 Tim-Philipp Müller <tim at centricular dot net>
* libs/gst/base/gstdataqueue.c:
Eliminate tabs and trailing comma in enum list; fix some typos.
2007-05-24 Wim Taymans <wim@fluendo.com> 2007-05-24 Wim Taymans <wim@fluendo.com>
* tests/check/gst/gstbin.c: (GST_START_TEST): * tests/check/gst/gstbin.c: (GST_START_TEST):

View file

@ -23,9 +23,9 @@
* SECTION:gstdataqueue * SECTION:gstdataqueue
* @short_description: Threadsafe queueing object * @short_description: Threadsafe queueing object
* *
* #GstDataQueue is an object that handles threadsafe queueing of object. It * #GstDataQueue is an object that handles threadsafe queueing of objects. It
* also provides size-related functionnality. This object should be used for * also provides size-related functionality. This object should be used for
* any #GstElement that wishes to provide some sort of queueing functionnality. * any #GstElement that wishes to provide some sort of queueing functionality.
*/ */
#include <gst/gst.h> #include <gst/gst.h>
@ -49,43 +49,43 @@ enum
ARG_0, ARG_0,
ARG_CUR_LEVEL_VISIBLE, ARG_CUR_LEVEL_VISIBLE,
ARG_CUR_LEVEL_BYTES, ARG_CUR_LEVEL_BYTES,
ARG_CUR_LEVEL_TIME, ARG_CUR_LEVEL_TIME
/* FILL ME */ /* FILL ME */
}; };
#define GST_DATA_QUEUE_MUTEX_LOCK(q) G_STMT_START { \ #define GST_DATA_QUEUE_MUTEX_LOCK(q) G_STMT_START { \
GST_CAT_LOG (data_queue_dataflow, \ GST_CAT_LOG (data_queue_dataflow, \
"locking qlock from thread %p", \ "locking qlock from thread %p", \
g_thread_self ()); \ g_thread_self ()); \
g_mutex_lock (q->qlock); \ g_mutex_lock (q->qlock); \
GST_CAT_LOG (data_queue_dataflow, \ GST_CAT_LOG (data_queue_dataflow, \
"locked qlock from thread %p", \ "locked qlock from thread %p", \
g_thread_self ()); \ g_thread_self ()); \
} G_STMT_END } G_STMT_END
#define GST_DATA_QUEUE_MUTEX_LOCK_CHECK(q, label) G_STMT_START { \ #define GST_DATA_QUEUE_MUTEX_LOCK_CHECK(q, label) G_STMT_START { \
GST_DATA_QUEUE_MUTEX_LOCK (q); \ GST_DATA_QUEUE_MUTEX_LOCK (q); \
if (q->flushing) \ if (q->flushing) \
goto label; \ goto label; \
} G_STMT_END } G_STMT_END
#define GST_DATA_QUEUE_MUTEX_UNLOCK(q) G_STMT_START { \ #define GST_DATA_QUEUE_MUTEX_UNLOCK(q) G_STMT_START { \
GST_CAT_LOG (data_queue_dataflow, \ GST_CAT_LOG (data_queue_dataflow, \
"unlocking qlock from thread %p", \ "unlocking qlock from thread %p", \
g_thread_self ()); \ g_thread_self ()); \
g_mutex_unlock (q->qlock); \ g_mutex_unlock (q->qlock); \
} G_STMT_END } G_STMT_END
#define STATUS(q, msg) \ #define STATUS(q, msg) \
GST_CAT_LOG (data_queue_dataflow, \ GST_CAT_LOG (data_queue_dataflow, \
"queue:%p " msg ": %u visible items, %u " \ "queue:%p " msg ": %u visible items, %u " \
"bytes, %"G_GUINT64_FORMAT \ "bytes, %"G_GUINT64_FORMAT \
" ns, %u elements", \ " ns, %u elements", \
queue, \ queue, \
q->cur_level.visible, \ q->cur_level.visible, \
q->cur_level.bytes, \ q->cur_level.bytes, \
q->cur_level.time, \ q->cur_level.time, \
q->queue->length) q->queue->length)
static void gst_data_queue_base_init (GstDataQueueClass * klass); static void gst_data_queue_base_init (GstDataQueueClass * klass);
static void gst_data_queue_class_init (GstDataQueueClass * klass); static void gst_data_queue_class_init (GstDataQueueClass * klass);