summaryrefslogtreecommitdiff
path: root/gst-libs/gst/basecamerabinsrc
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@collabora.co.uk>2011-12-01 16:59:14 +0100
committerWim Taymans <wim.taymans@collabora.co.uk>2011-12-01 16:59:14 +0100
commitcacdd29b5c575336f72d20cebb7adcd7252e052f (patch)
tree2d9925f4e7a3f63bfd3a60b93d04600db6a5986a /gst-libs/gst/basecamerabinsrc
parent759d62bafe2ace93280050d57e4f20f288b6304f (diff)
camerabin: use GstSample for the preview
Diffstat (limited to 'gst-libs/gst/basecamerabinsrc')
-rw-r--r--gst-libs/gst/basecamerabinsrc/gstcamerabinpreview.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/gst-libs/gst/basecamerabinsrc/gstcamerabinpreview.c b/gst-libs/gst/basecamerabinsrc/gstcamerabinpreview.c
index 4273c7109..41d11e158 100644
--- a/gst-libs/gst/basecamerabinsrc/gstcamerabinpreview.c
+++ b/gst-libs/gst/basecamerabinsrc/gstcamerabinpreview.c
@@ -79,20 +79,20 @@ bus_callback (GstBus * bus, GstMessage * message, gpointer user_data)
}
static GstFlowReturn
-gst_camerabin_preview_pipeline_new_buffer (GstAppSink * appsink,
+gst_camerabin_preview_pipeline_new_sample (GstAppSink * appsink,
gpointer user_data)
{
- GstBuffer *buffer;
+ GstSample *sample;
GstStructure *s;
GstMessage *msg;
GstCameraBinPreviewPipelineData *data;
data = user_data;
- buffer = gst_app_sink_pull_buffer (appsink);
+ sample = gst_app_sink_pull_sample (appsink);
s = gst_structure_new (GST_BASE_CAMERA_SRC_PREVIEW_MESSAGE_NAME,
- "buffer", GST_TYPE_BUFFER, buffer, NULL);
- gst_buffer_unref (buffer);
+ "sample", GST_TYPE_SAMPLE, sample, NULL);
+ gst_sample_unref (sample);
msg = gst_message_new_element (GST_OBJECT (data->element), s);
GST_DEBUG_OBJECT (data->element, "sending message with preview image");
@@ -181,7 +181,7 @@ gst_camerabin_create_preview_pipeline (GstElement * element,
goto error;
}
- callbacks.new_buffer = gst_camerabin_preview_pipeline_new_buffer;
+ callbacks.new_sample = gst_camerabin_preview_pipeline_new_sample;
gst_app_sink_set_callbacks ((GstAppSink *) data->appsink, &callbacks, data,
NULL);