camerabin: fix priority for idle_add function
authorTeemu Katajisto <ext-teemu.katajisto@nokia.com>
Thu, 9 Sep 2010 07:50:59 +0000 (10:50 +0300)
committerThiago Santos <thiago.sousa.santos@collabora.co.uk>
Tue, 2 Nov 2010 12:16:44 +0000 (09:16 -0300)
Adds a higher priority to the idle_add function for when
the image bin finished the image capture. This reduces the
delay for the application to be notified about this.

gst/camerabin/gstcamerabin.c

index 6984acd..375987c 100644 (file)
@@ -3830,8 +3830,8 @@ gst_camerabin_handle_message_func (GstBin * bin, GstMessage * msg)
         GST_DEBUG_OBJECT (camera, "got image eos message");
         /* Calling callback directly will deadlock in
            imagebin state change functions */
-        g_idle_add_full (G_PRIORITY_HIGH, gst_camerabin_imgbin_finished, camera,
-            NULL);
+        g_idle_add_full (G_PRIORITY_HIGH_IDLE, gst_camerabin_imgbin_finished,
+            camera, NULL);
       }
       break;
     case GST_MESSAGE_ERROR: