[cheese/camerabin] cheese-camera: Removing height and width defaults
- From: Luciana Fujii Pontello <lufujii src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cheese/camerabin] cheese-camera: Removing height and width defaults
- Date: Tue, 18 Jan 2011 19:40:47 +0000 (UTC)
commit 13229a5f0a11f74992cb3eb72e0f5ebefdbf3a78
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 ed4a3e9..ee2dd76 100644
--- a/libcheese/cheese-camera.c
+++ b/libcheese/cheese-camera.c
@@ -1028,6 +1028,8 @@ cheese_camera_setup (CheeseCamera *camera, 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]