mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 06:58:56 +00:00
camerabin2: Adding 2 more log messages
This commit is contained in:
parent
25c3ce9a7a
commit
b8f9c3b39d
1 changed files with 4 additions and 0 deletions
|
@ -927,6 +927,8 @@ gst_camera_bin_handle_message (GstBin * bin, GstMessage * message)
|
||||||
if (gst_structure_has_name (structure, "GstMultiFileSink")) {
|
if (gst_structure_has_name (structure, "GstMultiFileSink")) {
|
||||||
GST_CAMERA_BIN2_PROCESSING_DEC (GST_CAMERA_BIN2_CAST (bin));
|
GST_CAMERA_BIN2_PROCESSING_DEC (GST_CAMERA_BIN2_CAST (bin));
|
||||||
filename = gst_structure_get_string (structure, "filename");
|
filename = gst_structure_get_string (structure, "filename");
|
||||||
|
GST_DEBUG_OBJECT (bin, "Got file save message from multifilesink, "
|
||||||
|
"image %s has been saved", filename);
|
||||||
if (filename) {
|
if (filename) {
|
||||||
gst_image_capture_bin_post_image_done (GST_CAMERA_BIN2_CAST (bin),
|
gst_image_capture_bin_post_image_done (GST_CAMERA_BIN2_CAST (bin),
|
||||||
filename);
|
filename);
|
||||||
|
@ -941,6 +943,8 @@ gst_camera_bin_handle_message (GstBin * bin, GstMessage * message)
|
||||||
gst_message_parse_warning (message, &err, &debug);
|
gst_message_parse_warning (message, &err, &debug);
|
||||||
if (err->domain == GST_RESOURCE_ERROR) {
|
if (err->domain == GST_RESOURCE_ERROR) {
|
||||||
/* some capturing failed */
|
/* some capturing failed */
|
||||||
|
GST_WARNING_OBJECT (bin, "Capture failed, reason: %s - %s",
|
||||||
|
err->message, debug);
|
||||||
GST_CAMERA_BIN2_PROCESSING_DEC (GST_CAMERA_BIN2_CAST (bin));
|
GST_CAMERA_BIN2_PROCESSING_DEC (GST_CAMERA_BIN2_CAST (bin));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue