projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
36b794f
)
v4l2: Fix glib warning emitted when attribute query fails
author
Philippe Normand
<philn@igalia.com>
Wed, 21 Apr 2021 17:41:08 +0000
(18:41 +0100)
committer
Philippe Normand
<philn@igalia.com>
Wed, 21 Apr 2021 17:48:38 +0000
(18:48 +0100)
The v4l2object is not a GstObject. Logging has to go through its dbg_obj
specially meant for this.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/959>
sys/v4l2/v4l2_calls.c
patch
|
blob
|
history
diff --git
a/sys/v4l2/v4l2_calls.c
b/sys/v4l2/v4l2_calls.c
index
299eab0
..
6afdefb
100644
(file)
--- a/
sys/v4l2/v4l2_calls.c
+++ b/
sys/v4l2/v4l2_calls.c
@@
-926,7
+926,7
@@
gst_v4l2_get_attribute (GstV4l2Object * v4l2object,
/* ERRORS */
ctrl_failed:
{
- GST_WARNING_OBJECT (v4l2object,
+ GST_WARNING_OBJECT (v4l2object
->dbg_obj
,
_("Failed to get value for control %d on device '%s'."),
attribute_num, v4l2object->videodev);
return FALSE;