mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 16:50:47 +00:00
camerabin2: track also preview images with processing counter
Makes camerabin2 only signal that it is idle after all previews have been generated, images are captured and saved, and videos have been finished properly.
This commit is contained in:
parent
fd4eb2e220
commit
37aa6a9c71
1 changed files with 8 additions and 0 deletions
|
@ -377,6 +377,11 @@ gst_camera_bin_start_capture (GstCameraBin2 * camerabin)
|
|||
|
||||
GST_CAMERA_BIN2_PROCESSING_INC (camerabin);
|
||||
|
||||
if (camerabin->post_previews) {
|
||||
/* Count processing of preview images too */
|
||||
GST_CAMERA_BIN2_PROCESSING_INC (camerabin);
|
||||
}
|
||||
|
||||
if (camerabin->location)
|
||||
location = g_strdup_printf (camerabin->location, capture_index);
|
||||
|
||||
|
@ -974,6 +979,9 @@ gst_camera_bin_handle_message (GstBin * bin, GstMessage * message)
|
|||
gst_structure_take_value ((GstStructure *) structure, "location",
|
||||
value);
|
||||
}
|
||||
|
||||
GST_LOG_OBJECT (bin, "received preview-image message");
|
||||
GST_CAMERA_BIN2_PROCESSING_DEC (GST_CAMERA_BIN2_CAST (bin));
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue