camerabin: fix image queue parameter setting
authorTommi Myöhänen <ext-tommi.1.myohanen@nokia.com>
Thu, 10 Sep 2009 12:16:23 +0000 (15:16 +0300)
committerRené Stadler <rene.stadler@nokia.com>
Thu, 1 Oct 2009 15:06:53 +0000 (18:06 +0300)
Camerabin incorrectly used G_GUINT64_CONSTANT macro for setting
"max-size-buffers" and "max-size-bytes" properties in image queue,
even when they aren't 64bit integers.

gst/camerabin/gstcamerabin.c

index 31325f9..301899f 100644 (file)
@@ -731,10 +731,8 @@ camerabin_create_elements (GstCameraBin * camera)
   /* To avoid deadlock, we won't restrict the image queue size */
   /* FIXME: actually we would like to have some kind of restriction here (size),
      but deadlocks must be handled somehow... */
-  g_object_set (G_OBJECT (camera->img_queue),
-      "max-size-time", G_GUINT64_CONSTANT (0),
-      "max-size-bytes", G_GUINT64_CONSTANT (0),
-      "max-size-buffers", G_GUINT64_CONSTANT (0), NULL);
+  g_object_set (G_OBJECT (camera->img_queue), "max-size-buffers", 0,
+      "max-size-bytes", 0, "max-size-time", G_GUINT64_CONSTANT (0), NULL);
 
   camera->pad_src_queue = gst_element_get_static_pad (camera->img_queue, "src");