mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 01:30:38 +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);
|
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)
|
if (camerabin->location)
|
||||||
location = g_strdup_printf (camerabin->location, capture_index);
|
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",
|
gst_structure_take_value ((GstStructure *) structure, "location",
|
||||||
value);
|
value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GST_LOG_OBJECT (bin, "received preview-image message");
|
||||||
|
GST_CAMERA_BIN2_PROCESSING_DEC (GST_CAMERA_BIN2_CAST (bin));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue