From 12f77b27e26e22b09bf9efee254b8f27c0f4cdc7 Mon Sep 17 00:00:00 2001 From: Thiago Santos Date: Tue, 6 Sep 2011 10:49:04 -0300 Subject: [PATCH] camerabin2: preview: No need for appsink to store the last buffer There is no need for preview's appsink to keep a reference to the last buffer, so disable the property to make it unref the buffers sooner. --- gst-libs/gst/basecamerabinsrc/gstcamerabinpreview.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gst-libs/gst/basecamerabinsrc/gstcamerabinpreview.c b/gst-libs/gst/basecamerabinsrc/gstcamerabinpreview.c index b916d7f6b3..5dd82dad16 100644 --- a/gst-libs/gst/basecamerabinsrc/gstcamerabinpreview.c +++ b/gst-libs/gst/basecamerabinsrc/gstcamerabinpreview.c @@ -146,7 +146,8 @@ gst_camerabin_create_preview_pipeline (GstElement * element, } g_object_set (data->appsrc, "emit-signals", FALSE, NULL); - g_object_set (data->appsink, "sync", FALSE, NULL); + g_object_set (data->appsink, "sync", FALSE, "enable-last-buffer", + FALSE, NULL); gst_bin_add_many (GST_BIN (data->pipeline), data->appsrc, data->capsfilter, data->appsink, csp, vscale, NULL);