camerabin2: change post-previews property default value as false
authorLasse Laukkanen <lasse.laukkanen@digia.com>
Tue, 8 Nov 2011 10:09:41 +0000 (07:09 -0300)
committerThiago Santos <thiago.sousa.santos@collabora.com>
Tue, 8 Nov 2011 10:09:41 +0000 (07:09 -0300)
Generating and posting preview image always comes with a performance
penalty so set default value as false. The preview-caps property that
defines the preview image format is also NULL by default, so instead
of generating preview image of unspecified format by default explicit
action from application should be required for enabling preview image
posting feature.

Application also has to add custom code to be able
to handle preview messages on its message handling function anyway.

gst/camerabin2/gstcamerabin2.c

index eebf12041da2af7d51d899c5b37eddbb67f11184..8734fecfe51e6506b6a0ecd22e7e2829b69ed8cf 100644 (file)
@@ -243,7 +243,7 @@ static guint camerabin_signals[LAST_SIGNAL];
 
 #define DEFAULT_MODE MODE_IMAGE
 #define DEFAULT_LOCATION "cap_%d"
-#define DEFAULT_POST_PREVIEWS TRUE
+#define DEFAULT_POST_PREVIEWS FALSE
 #define DEFAULT_MUTE_AUDIO FALSE
 #define DEFAULT_IDLE TRUE
 #define DEFAULT_FLAGS 0