diff options
author | Wim Taymans <wim.taymans@gmail.com> | 2007-08-14 17:47:34 +0000 |
---|---|---|
committer | Wim Taymans <wim.taymans@gmail.com> | 2007-08-14 17:47:34 +0000 |
commit | acf2b8fb5bb08477df0db46158061b1239eaef3c (patch) | |
tree | 944c820e2ed940c8af24fb29eb63ad0d312b501e /gst-libs/gst/app | |
parent | 5111980fa807427b281d8bebc9d4b2392646ad15 (diff) | |
download | gst-plugins-bad-acf2b8fb5bb08477df0db46158061b1239eaef3c.tar.gz gst-plugins-bad-acf2b8fb5bb08477df0db46158061b1239eaef3c.tar.bz2 gst-plugins-bad-acf2b8fb5bb08477df0db46158061b1239eaef3c.zip |
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.
Diffstat (limited to 'gst-libs/gst/app')
-rw-r--r-- | gst-libs/gst/app/gstappsink.c | 6 |
1 files changed, 4 insertions, 2 deletions
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); } |