[cheese] Set the video resolution
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cheese] Set the video resolution
- Date: Mon, 3 Sep 2012 19:58:11 +0000 (UTC)
commit ab16312179d56a354fcd4e2fad1d6a8b764c6441
Author: Raluca Elena Podiuc <ralucaelena1985 gmail com>
Date: Thu Jul 28 00:03:55 2011 +0300
Set the video resolution
Use the viewfinder-caps property of camerabin2, rather than the
set-video-resolution-fps signal of camerabin.
libcheese/cheese-camera.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/libcheese/cheese-camera.c b/libcheese/cheese-camera.c
index 13eb72e..8c8cda4 100644
--- a/libcheese/cheese-camera.c
+++ b/libcheese/cheese-camera.c
@@ -721,9 +721,8 @@ cheese_camera_play (CheeseCamera *camera)
if (!gst_caps_is_empty (caps))
{
- g_signal_emit_by_name (priv->camerabin, "set-video-resolution-fps",
- priv->current_format->width,
- priv->current_format->height, 0, 1, 0);
+ GST_INFO_OBJECT (camera, "SETTING caps%" GST_PTR_FORMAT, caps);
+ g_object_set (priv->camerabin, "viewfinder-caps", caps, NULL);
}
gst_caps_unref (caps);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]