summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--gst-libs/gst/app/gstappsink.c6
2 files changed, 9 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 4bc82c89..c0c6981e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2007-08-14 Wim Taymans <wim.taymans@gmail.com>
+ * gst-libs/gst/app/gstappsink.c: (gst_app_sink_flush_unlocked):
+ Don't use new API.
+
+2007-08-14 Wim Taymans <wim.taymans@gmail.com>
+
* gst-libs/gst/app/gstappsink.c: (gst_app_sink_base_init),
(gst_app_sink_class_init), (gst_app_sink_dispose),
(gst_app_sink_flush_unlocked), (gst_app_sink_start),
diff --git a/gst-libs/gst/app/gstappsink.c b/gst-libs/gst/app/gstappsink.c
index e7baf63e..ee8c9190 100644
--- a/gst-libs/gst/app/gstappsink.c
+++ b/gst-libs/gst/app/gstappsink.c
@@ -167,11 +167,13 @@ gst_app_sink_get_property (GObject * object, guint prop_id, GValue * value,
static void
gst_app_sink_flush_unlocked (GstAppSink * appsink)
{
+ GstBuffer *buffer;
+
GST_DEBUG_OBJECT (appsink, "flushing appsink");
appsink->end_of_stream = FALSE;
gst_buffer_replace (&appsink->preroll, NULL);
- g_queue_foreach (appsink->queue, (GFunc) gst_mini_object_unref, NULL);
- g_queue_clear (appsink->queue);
+ while ((buffer = g_queue_pop_head (appsink->queue)))
+ gst_buffer_unref (buffer);
g_cond_signal (appsink->cond);
}