From ad1ddaf53a7c66d195b20243db6c74ef05e3c3aa Mon Sep 17 00:00:00 2001 From: Lasse Laukkanen Date: Tue, 8 Nov 2011 07:09:41 -0300 Subject: [PATCH] camerabin2: change post-previews property default value as false 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/camerabin2/gstcamerabin2.c b/gst/camerabin2/gstcamerabin2.c index eebf12041d..8734fecfe5 100644 --- a/gst/camerabin2/gstcamerabin2.c +++ b/gst/camerabin2/gstcamerabin2.c @@ -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