summaryrefslogtreecommitdiffstats
path: root/gst/camerabin/camerabinvideo.c
diff options
context:
space:
mode:
authorStefan Kost <ensonic@users.sf.net>2009-07-15 17:44:10 +0300
committerStefan Kost <ensonic@users.sf.net>2009-07-15 17:44:10 +0300
commitaace8e130fa8dde86e18eceedab130f017c67f8e (patch)
treedcf59cf861b66d56422c1c428c0b77e6f47ff8a6 /gst/camerabin/camerabinvideo.c
parentc73bf8e4b6ee4b94232e3fc4c9c78005453f20f9 (diff)
downloadgst-plugins-bad-aace8e130fa8dde86e18eceedab130f017c67f8e.tar.gz
gst-plugins-bad-aace8e130fa8dde86e18eceedab130f017c67f8e.tar.bz2
gst-plugins-bad-aace8e130fa8dde86e18eceedab130f017c67f8e.zip
camerabin: use nonbuffered io to save memcopies
We write large blocks anyway, so no extra buffering please. Also use one g_object_set to set multiple properties on same object.
Diffstat (limited to 'gst/camerabin/camerabinvideo.c')
-rw-r--r--gst/camerabin/camerabinvideo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gst/camerabin/camerabinvideo.c b/gst/camerabin/camerabinvideo.c
index 4bbc5057..40a2bfa7 100644
--- a/gst/camerabin/camerabinvideo.c
+++ b/gst/camerabin/camerabinvideo.c
@@ -600,8 +600,8 @@ gst_camerabin_video_create_elements (GstCameraBinVideo * vid)
gst_camerabin_create_and_add_element (vidbin, DEFAULT_SINK))) {
goto error;
}
- g_object_set (G_OBJECT (vid->sink), "location", vid->filename->str, NULL);
-
+ g_object_set (G_OBJECT (vid->sink), "location", vid->filename->str, "buffer-mode", 2, /* non buffered io */
+ NULL);
/* Add user set or default audio source element */
if (vid->user_aud_src) {