From 881672937acdb9f661fb8f0f66b426a2b08261f1 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Sat, 29 Dec 2001 03:09:23 +0000 Subject: [PATCH] And remove some of the debugging crap Original commit message from CVS: And remove some of the debugging crap --- gst/gstqueue.c | 6 ++---- gst/gstqueue.h | 1 - plugins/elements/gstqueue.c | 6 ++---- plugins/elements/gstqueue.h | 1 - 4 files changed, 4 insertions(+), 10 deletions(-) diff --git a/gst/gstqueue.c b/gst/gstqueue.c index e0d30c140e..48d6b55b19 100644 --- a/gst/gstqueue.c +++ b/gst/gstqueue.c @@ -183,7 +183,6 @@ gst_queue_init (GstQueue *queue) queue->leaky = GST_QUEUE_NO_LEAK; queue->queue = NULL; - queue->count = 0; queue->level_buffers = 0; queue->level_bytes = 0; queue->level_time = 0LL; @@ -387,7 +386,6 @@ restart: queue->level_buffers, queue->size_buffers); } - GST_BUFFER_OFFSET (buf) = queue->count++; /* put the buffer on the tail of the list */ queue->queue = g_list_append (queue->queue, buf); queue->level_buffers++; @@ -398,7 +396,7 @@ restart: queue->level_buffers, queue->size_buffers); /* this assertion _has_ to hold */ - g_assert (g_list_length (queue->queue) == queue->level_buffers); + /* g_assert (g_list_length (queue->queue) == queue->level_buffers); */ /* reader waiting on an empty queue */ reader = queue->reader; @@ -481,7 +479,7 @@ restart: queue->level_buffers, queue->size_buffers); /* this assertion _has_ to hold */ - g_assert (g_list_length (queue->queue) == queue->level_buffers); + /* g_assert (g_list_length (queue->queue) == queue->level_buffers); */ /* writer waiting on a full queue */ writer = queue->writer; diff --git a/gst/gstqueue.h b/gst/gstqueue.h index b920510c39..06485edbc1 100644 --- a/gst/gstqueue.h +++ b/gst/gstqueue.h @@ -64,7 +64,6 @@ struct _GstQueue { /* the queue of buffers we're keeping our grubby hands on */ GList *queue; - gint count; guint level_buffers; /* number of buffers queued here */ guint level_bytes; /* number of bytes queued here */ diff --git a/plugins/elements/gstqueue.c b/plugins/elements/gstqueue.c index e0d30c140e..48d6b55b19 100644 --- a/plugins/elements/gstqueue.c +++ b/plugins/elements/gstqueue.c @@ -183,7 +183,6 @@ gst_queue_init (GstQueue *queue) queue->leaky = GST_QUEUE_NO_LEAK; queue->queue = NULL; - queue->count = 0; queue->level_buffers = 0; queue->level_bytes = 0; queue->level_time = 0LL; @@ -387,7 +386,6 @@ restart: queue->level_buffers, queue->size_buffers); } - GST_BUFFER_OFFSET (buf) = queue->count++; /* put the buffer on the tail of the list */ queue->queue = g_list_append (queue->queue, buf); queue->level_buffers++; @@ -398,7 +396,7 @@ restart: queue->level_buffers, queue->size_buffers); /* this assertion _has_ to hold */ - g_assert (g_list_length (queue->queue) == queue->level_buffers); + /* g_assert (g_list_length (queue->queue) == queue->level_buffers); */ /* reader waiting on an empty queue */ reader = queue->reader; @@ -481,7 +479,7 @@ restart: queue->level_buffers, queue->size_buffers); /* this assertion _has_ to hold */ - g_assert (g_list_length (queue->queue) == queue->level_buffers); + /* g_assert (g_list_length (queue->queue) == queue->level_buffers); */ /* writer waiting on a full queue */ writer = queue->writer; diff --git a/plugins/elements/gstqueue.h b/plugins/elements/gstqueue.h index b920510c39..06485edbc1 100644 --- a/plugins/elements/gstqueue.h +++ b/plugins/elements/gstqueue.h @@ -64,7 +64,6 @@ struct _GstQueue { /* the queue of buffers we're keeping our grubby hands on */ GList *queue; - gint count; guint level_buffers; /* number of buffers queued here */ guint level_bytes; /* number of bytes queued here */