In order to preroll, camerabin2 should have its filesinks in
the imagecapturebin and videorecordingbin with async=FALSE.
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);
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);