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.
This commit is contained in:
Wim Taymans 2007-08-14 17:47:34 +00:00
parent dd72f88a8c
commit 1ec11dbc8e

View file

@ -167,11 +167,13 @@ gst_app_sink_get_property (GObject * object, guint prop_id, GValue * value,
static void static void
gst_app_sink_flush_unlocked (GstAppSink * appsink) gst_app_sink_flush_unlocked (GstAppSink * appsink)
{ {
GstBuffer *buffer;
GST_DEBUG_OBJECT (appsink, "flushing appsink"); GST_DEBUG_OBJECT (appsink, "flushing appsink");
appsink->end_of_stream = FALSE; appsink->end_of_stream = FALSE;
gst_buffer_replace (&appsink->preroll, NULL); gst_buffer_replace (&appsink->preroll, NULL);
g_queue_foreach (appsink->queue, (GFunc) gst_mini_object_unref, NULL); while ((buffer = g_queue_pop_head (appsink->queue)))
g_queue_clear (appsink->queue); gst_buffer_unref (buffer);
g_cond_signal (appsink->cond); g_cond_signal (appsink->cond);
} }