mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 01:30:38 +00:00
camerabin2: Set filesink's async to FALSE
In order to preroll, camerabin2 should have its filesinks in the imagecapturebin and videorecordingbin with async=FALSE.
This commit is contained in:
parent
1887669d6e
commit
a938fd9192
2 changed files with 2 additions and 2 deletions
|
@ -125,7 +125,7 @@ gst_image_capture_bin_create_elements (GstImageCaptureBin * icbin)
|
|||
if (!sink)
|
||||
goto error;
|
||||
|
||||
g_object_set (sink, "location", "cap_%03d.jpg", NULL);
|
||||
g_object_set (sink, "location", "cap_%03d.jpg", "async", FALSE, NULL);
|
||||
|
||||
/* add and link */
|
||||
gst_bin_add_many (GST_BIN_CAST (icbin), csp, enc, mux, sink, NULL);
|
||||
|
|
|
@ -126,7 +126,7 @@ gst_video_recording_bin_create_elements (GstVideoRecordingBin * vrbin)
|
|||
if (!sink)
|
||||
goto error;
|
||||
|
||||
g_object_set (sink, "location", "cap.ogg", NULL);
|
||||
g_object_set (sink, "location", "cap.ogg", "async", FALSE, NULL);
|
||||
|
||||
/* add and link */
|
||||
gst_bin_add_many (GST_BIN_CAST (vrbin), csp, enc, mux, sink, NULL);
|
||||
|
|
Loading…
Reference in a new issue