[cheese] Image-done message is posted by camerabin2



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

    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 02e4aa9..fd7a93b 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]