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
@ -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…
x
Reference in New Issue
Block a user