[cheese/camerabin2-format: 21/27] cheese-camera: image-done message is posted by camerabin2



commit 2102d4662167d5845125a1f3ef635da29f1ea97a
Author: Thiago Santos <thiago sousa santos collabora com>
Date:   Fri Nov 25 20:35:59 2011 -0300

    cheese-camera: image-done message is posted by camerabin2
    
    Camerabin2 is the element to post the image-done message, not
    the camera source.

 libcheese/cheese-camera.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/libcheese/cheese-camera.c b/libcheese/cheese-camera.c
index 7c6f44f..7d10d95 100644
--- a/libcheese/cheese-camera.c
+++ b/libcheese/cheese-camera.c
@@ -263,6 +263,10 @@ cheese_camera_bus_message_cb (GstBus *bus, GstMessage *message, CheeseCamera *ca
             }
           }
         }
+      }
+      if (strcmp (GST_MESSAGE_SRC_NAME (message), "camerabin2") == 0)
+      {
+        structure = gst_message_get_structure (message);
         if (strcmp (gst_structure_get_name (structure), "image-done") == 0)
         {
           const gchar *filename = gst_structure_get_string (structure, "filename");



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]