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:
Thiago Santos 2010-11-26 15:55:39 -03:00
parent 1887669d6e
commit a938fd9192
2 changed files with 2 additions and 2 deletions

View file

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

View file

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