mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-28 20:05:38 +00:00
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:
parent
9704c00b0d
commit
1b10553f90
1 changed files with 4 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue