camerabin: improve image done signal emission

Use g_idle_add_full() with G_PRIORITY_HIGH to emit image done signal,
g_idle_add() is more likely to starve with higher priority events.
This commit is contained in:
Lasse Laukkanen 2009-09-11 09:38:51 +03:00 committed by Stefan Kost
parent 9704c00b0d
commit 1b10553f90

View file

@ -3246,7 +3246,10 @@ gst_camerabin_handle_message_func (GstBin * bin, GstMessage * msg)
} else if (GST_MESSAGE_SRC (msg) == GST_OBJECT (camera->imgbin)) {
/* Image eos */
GST_DEBUG_OBJECT (camera, "got image eos message");
g_idle_add (gst_camerabin_imgbin_finished, camera);
/* Calling callback directly will deadlock in
imagebin state change functions */
g_idle_add_full (G_PRIORITY_HIGH, gst_camerabin_imgbin_finished, camera,
NULL);
}
break;
case GST_MESSAGE_ERROR: