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:
Lasse Laukkanen 2011-11-01 10:38:33 -03:00 committed by Thiago Santos
parent fd4eb2e220
commit 37aa6a9c71

View file

@ -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;