[cheese] cheese-camera: Removing height and width defaults
- From: Luciana Fujii Pontello <lufujii src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cheese] cheese-camera: Removing height and width defaults
- Date: Wed, 9 Mar 2011 20:45:51 +0000 (UTC)
commit 84e96bf851429fe29caa00ee713f7992886e4c7e
Author: Luciana Fujii Pontello <luciana fujii eti br>
Date: Tue Jan 18 15:52:46 2011 -0200
cheese-camera: Removing height and width defaults
Camerabin has video-capture defaults that can cause not-negotiated
errors or set resolution to values that are not the requested by the
user. Setting them to zero we allow the resolution to be negotiated.
libcheese/cheese-camera.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/libcheese/cheese-camera.c b/libcheese/cheese-camera.c
index 15d0289..d76420a 100644
--- a/libcheese/cheese-camera.c
+++ b/libcheese/cheese-camera.c
@@ -1131,6 +1131,8 @@ cheese_camera_setup (CheeseCamera *camera, const char *id, GError **error)
{
cheese_camera_set_error_element_not_found (error, "camerabin");
}
+ g_object_set (priv->camerabin, "video-capture-height", 0,
+ "video-capture-width", 0, NULL);
g_object_set (priv->camerabin, "video-source", priv->camera_source_bin, NULL);
/* Create a clutter-gst sink and set it as camerabin sink*/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]