[cheese/camerabin2: 14/24] camerabin2: fix pixbuff-only capture
- From: Oleksij Rempel <orempel src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cheese/camerabin2: 14/24] camerabin2: fix pixbuff-only capture
- Date: Sat, 24 Mar 2012 08:38:02 +0000 (UTC)
commit 5027733af92967b083256ce153ecd5774f7d1c4f
Author: Raluca Elena Podiuc <ralucaelena1985 gmail com>
Date: Fri Jul 22 11:58:07 2011 +0300
camerabin2: fix pixbuff-only capture
camerabin2 sends the preview-image bus message through the
gstwrappercamerabinsrc.
camerabin2 treats location=NULL as a "don't write in a file just post
the buffer as a bus message".
libcheese/cheese-camera.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libcheese/cheese-camera.c b/libcheese/cheese-camera.c
index e4866c3..13f499d 100644
--- a/libcheese/cheese-camera.c
+++ b/libcheese/cheese-camera.c
@@ -244,7 +244,7 @@ cheese_camera_bus_message_cb (GstBus *bus, GstMessage *message, CheeseCamera *ca
const GstStructure *structure;
GstBuffer *buffer;
const GValue *image;
- if (strcmp (GST_MESSAGE_SRC_NAME (message), "camerabin2") == 0)
+ if (strcmp (GST_MESSAGE_SRC_NAME (message), "camera_source") == 0)
{
structure = gst_message_get_structure (message);
if (strcmp (gst_structure_get_name (structure), "preview-image") == 0)
@@ -1145,7 +1145,7 @@ cheese_camera_take_photo_pixbuf (CheeseCamera *camera)
/* Take the photo */
- g_object_set (priv->camerabin, "location", "/dev/null", NULL);
+ g_object_set (priv->camerabin, "location", NULL, NULL);
g_object_set (priv->camerabin, "mode", MODE_IMAGE, NULL);
g_signal_emit_by_name (priv->camerabin, "start-capture", 0);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]