From a45f193207cf93eb7887b26ae4d6f7cc7e61ccdb Mon Sep 17 00:00:00 2001 From: Thomas Vander Stichele Date: Fri, 11 Jun 2004 23:46:32 +0000 Subject: [PATCH] use ->length Original commit message from CVS: use ->length --- ChangeLog | 5 +++++ gst/gstqueue.c | 3 ++- plugins/elements/gstqueue.c | 3 ++- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 00e6ead..199f302 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2004-06-12 Thomas Vander Stichele + + * gst/gstqueue.c: + don't use g_queue_get_length () because it's 2.4, use ->length + 2004-06-11 Steve Lhomme reviewed by Benjamin Otte diff --git a/gst/gstqueue.c b/gst/gstqueue.c index 094464f..ea6937b 100644 --- a/gst/gstqueue.c +++ b/gst/gstqueue.c @@ -394,9 +394,10 @@ static void gst_queue_handle_pending_events (GstQueue * queue) { /* check for events to send upstream */ + /* g_queue_get_length is glib 2.4, so don't depend on it yet, use ->length */ GST_CAT_DEBUG_OBJECT (queue_dataflow, queue, "handling pending events, events queue of size %d", - g_queue_get_length (queue->events)); + queue->events->length); g_mutex_lock (queue->event_lock); while (!g_queue_is_empty (queue->events)) { GstQueueEventResponse *er; diff --git a/plugins/elements/gstqueue.c b/plugins/elements/gstqueue.c index 094464f..ea6937b 100644 --- a/plugins/elements/gstqueue.c +++ b/plugins/elements/gstqueue.c @@ -394,9 +394,10 @@ static void gst_queue_handle_pending_events (GstQueue * queue) { /* check for events to send upstream */ + /* g_queue_get_length is glib 2.4, so don't depend on it yet, use ->length */ GST_CAT_DEBUG_OBJECT (queue_dataflow, queue, "handling pending events, events queue of size %d", - g_queue_get_length (queue->events)); + queue->events->length); g_mutex_lock (queue->event_lock); while (!g_queue_is_empty (queue->events)) { GstQueueEventResponse *er; -- 2.7.4