[cheese/wip/hans-fixes: 3/35] cheese-camera: Set image- and video-capture-caps
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cheese/wip/hans-fixes: 3/35] cheese-camera: Set image- and video-capture-caps
- Date: Fri, 14 Jun 2013 22:23:56 +0000 (UTC)
commit e3a3f6b6346339f75701544104a06c192a8acc3a
Author: Hans de Goede <hdegoede redhat com>
Date: Mon Jun 10 10:12:41 2013 +0200
cheese-camera: Set image- and video-capture-caps
Force the image / video capture to be in our desired resolution, rather then
relying on constraints elsewhere in the pipeline resulting in us getting
the desired resolution.
Signed-off-by: Hans de Goede <hdegoede redhat com>
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 7737209..9eeb245 100644
--- a/libcheese/cheese-camera.c
+++ b/libcheese/cheese-camera.c
@@ -758,6 +758,8 @@ cheese_camera_set_new_caps (CheeseCamera *camera)
GST_INFO_OBJECT (camera, "SETTING caps %" GST_PTR_FORMAT, caps);
g_object_set (gst_bin_get_by_name (GST_BIN (priv->video_source), "video_source_filter"), "caps", caps,
NULL);
g_object_set (priv->camerabin, "viewfinder-caps", caps, NULL);
+ g_object_set (priv->camerabin, "image-capture-caps", caps, NULL);
+ g_object_set (priv->camerabin, "video-capture-caps", caps, NULL);
}
gst_caps_unref (caps);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]