camerabin2: Set filesink's async to FALSE
authorThiago Santos <thiago.sousa.santos@collabora.co.uk>
Fri, 26 Nov 2010 18:55:39 +0000 (15:55 -0300)
committerThiago Santos <thiago.sousa.santos@collabora.co.uk>
Wed, 8 Dec 2010 18:38:27 +0000 (15:38 -0300)
In order to preroll, camerabin2 should have its filesinks in
the imagecapturebin and videorecordingbin with async=FALSE.

gst/camerabin2/gstimagecapturebin.c
gst/camerabin2/gstvideorecordingbin.c

index 6334a8b3e2a878f0353e3933fb9d618904b6029f..242172aafe84785531dee944ec1b8b4ee44a94fc 100644 (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);
index 4e5a8782d5ecc4179f45b9bb52321bb4cda6e448..f4c423d82eb237983aaea4a13dc69a4297bcfbb3 100644 (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);