From: Wim Taymans Date: Tue, 14 Aug 2007 17:47:34 +0000 (+0000) Subject: gst-libs/gst/app/gstappsink.c: Don't use new API. X-Git-Tag: RELEASE-0_10_15~162 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1ec11dbc8e0366fa393cb8aa9d22c4d05877b0d5;p=platform%2Fupstream%2Fgst-plugins-base.git gst-libs/gst/app/gstappsink.c: Don't use new API. Original commit message from CVS: * gst-libs/gst/app/gstappsink.c: (gst_app_sink_flush_unlocked): Don't use new API. --- diff --git a/gst-libs/gst/app/gstappsink.c b/gst-libs/gst/app/gstappsink.c index e7baf63..ee8c919 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); }