From c189ba34964218fa9475cd35c0166f6b0fe6b7d8 Mon Sep 17 00:00:00 2001 From: Raluca Elena Podiuc Date: Tue, 26 Jul 2011 03:04:47 +0300 Subject: basecamerabinsrc: preview: remove unused new_preroll callback --- gst-libs/gst/basecamerabinsrc/gstcamerabinpreview.c | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'gst-libs') diff --git a/gst-libs/gst/basecamerabinsrc/gstcamerabinpreview.c b/gst-libs/gst/basecamerabinsrc/gstcamerabinpreview.c index 2c3bee582..6b854197d 100644 --- a/gst-libs/gst/basecamerabinsrc/gstcamerabinpreview.c +++ b/gst-libs/gst/basecamerabinsrc/gstcamerabinpreview.c @@ -75,18 +75,6 @@ bus_callback (GstBus * bus, GstMessage * message, gpointer user_data) return TRUE; } -static GstFlowReturn -gst_camerabin_preview_pipeline_new_preroll (GstAppSink * appsink, - gpointer user_data) -{ - GstBuffer *buffer; - - buffer = gst_app_sink_pull_preroll (appsink); - gst_buffer_unref (buffer); - - return GST_FLOW_OK; -} - static GstFlowReturn gst_camerabin_preview_pipeline_new_buffer (GstAppSink * appsink, gpointer user_data) @@ -175,7 +163,6 @@ gst_camerabin_create_preview_pipeline (GstElement * element, goto error; } - callbacks.new_preroll = gst_camerabin_preview_pipeline_new_preroll; callbacks.new_buffer = gst_camerabin_preview_pipeline_new_buffer; gst_app_sink_set_callbacks ((GstAppSink *) data->appsink, &callbacks, data, NULL); -- cgit v1.2.3