mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
basecamerasrc: Notify earlier
Notify about ready-for-capture changes earlier to allow camerabin2 to do the videobin state switching before the capture starts.
This commit is contained in:
parent
1ff89c5f83
commit
614c4d8f6e
1 changed files with 2 additions and 1 deletions
|
@ -232,11 +232,12 @@ gst_base_camera_src_start_capture (GstBaseCameraSrc * src)
|
|||
}
|
||||
|
||||
src->capturing = TRUE;
|
||||
g_object_notify (G_OBJECT (src), "ready-for-capture");
|
||||
if (klass->start_capture (src)) {
|
||||
GST_DEBUG_OBJECT (src, "Capture started");
|
||||
g_object_notify (G_OBJECT (src), "ready-for-capture");
|
||||
} else {
|
||||
src->capturing = FALSE;
|
||||
g_object_notify (G_OBJECT (src), "ready-for-capture");
|
||||
GST_WARNING_OBJECT (src, "Failed to start capture");
|
||||
}
|
||||
g_mutex_unlock (src->capturing_mutex);
|
||||
|
|
Loading…
Reference in a new issue