projects
/
platform
/
upstream
/
gst-plugins-good.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4edbd4c
)
v4l2: fix compiler warnings when compiling with -DG_DISABLE_ASSERT
author
Tim-Philipp Müller
<tim@centricular.com>
Sun, 29 Jun 2014 16:03:17 +0000
(17:03 +0100)
committer
Tim-Philipp Müller
<tim@centricular.com>
Sun, 29 Jun 2014 16:06:11 +0000
(17:06 +0100)
Compiler complains about uninitialised variables in the impossible
'default' code path in device provider source/sink switch-case.
sys/v4l2/gstv4l2deviceprovider.c
patch
|
blob
|
history
diff --git
a/sys/v4l2/gstv4l2deviceprovider.c
b/sys/v4l2/gstv4l2deviceprovider.c
index
e49e7e5
..
8e366d4
100644
(file)
--- a/
sys/v4l2/gstv4l2deviceprovider.c
+++ b/
sys/v4l2/gstv4l2deviceprovider.c
@@
-438,8
+438,8
@@
gst_v4l2_device_new (const gchar * device_path, const gchar * device_name,
GstCaps * caps, GstV4l2DeviceType type)
{
GstV4l2Device *gstdev;
- const gchar *element;
- const gchar *klass;
+ const gchar *element
= NULL
;
+ const gchar *klass
= NULL
;
g_return_val_if_fail (device_path, NULL);
g_return_val_if_fail (device_name, NULL);