From: Jeongmo Yang Date: Mon, 26 Oct 2020 05:28:59 +0000 (+0900) Subject: [v4l2] Revice log for device open failure X-Git-Tag: accepted/tizen/unified/20201028.123948^0 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fupstream%2Fgst-plugins-good.git;a=commitdiff_plain;h=0e3da82fe22ee06e51a950ad0c655065934e9819 [v4l2] Revice log for device open failure [Version] 1.16.2-13 [Issue Type] Log Change-Id: I0c82ae6cffdd48cac1476dad5208f1059025e778 Signed-off-by: Jeongmo Yang --- diff --git a/packaging/gst-plugins-good.spec b/packaging/gst-plugins-good.spec index af4e3e6..ead5328 100644 --- a/packaging/gst-plugins-good.spec +++ b/packaging/gst-plugins-good.spec @@ -3,7 +3,7 @@ Name: gst-plugins-good Version: 1.16.2 -Release: 12 +Release: 13 License: LGPL-2.1+ Summary: GStreamer Streaming-Media Framework Plug-Ins Url: http://gstreamer.freedesktop.org/ diff --git a/sys/v4l2/v4l2_calls.c b/sys/v4l2/v4l2_calls.c index 294e5dc..fb5c1ae 100644 --- a/sys/v4l2/v4l2_calls.c +++ b/sys/v4l2/v4l2_calls.c @@ -700,6 +700,9 @@ pre_error_check: goto error; } + GST_ERROR_OBJECT (v4l2object->element, "device[%s] failed, error[%d]", + v4l2object->videodev, error_type); + if (GST_IS_V4L2SRC (v4l2object->element) && glob_buf.gl_pathc == 0) { if (glob("/dev/video*", 0, 0, &glob_buf) != 0) { GST_WARNING_OBJECT (v4l2object->element, "glob failed"); @@ -732,8 +735,6 @@ pre_error_check: } } - GST_WARNING_OBJECT (v4l2object->element, "error type : %d", error_type); - switch (error_type) { case V4L2_OPEN_ERROR_STAT_FAILED: goto stat_failed;