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.
This commit is contained in:
Thiago Santos 2011-09-06 10:49:04 -03:00
parent 754071b2f1
commit 12f77b27e2

View file

@ -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);