From ca16d951ba1f28ad9d5e1d0bbfeb36f7ca2387f0 Mon Sep 17 00:00:00 2001 From: Teemu Katajisto Date: Thu, 9 Sep 2010 10:50:59 +0300 Subject: [PATCH] camerabin: fix priority for idle_add function 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gst/camerabin/gstcamerabin.c b/gst/camerabin/gstcamerabin.c index 6984acd..375987c 100644 --- a/gst/camerabin/gstcamerabin.c +++ b/gst/camerabin/gstcamerabin.c @@ -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: -- 2.7.4