mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
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:
parent
754071b2f1
commit
12f77b27e2
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue