From f79de9a420922c22e5347e9a8b0d9585d88230ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Sun, 29 Jun 2014 17:03:17 +0100 Subject: [PATCH] v4l2: fix compiler warnings when compiling with -DG_DISABLE_ASSERT Compiler complains about uninitialised variables in the impossible 'default' code path in device provider source/sink switch-case. --- sys/v4l2/gstv4l2deviceprovider.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/v4l2/gstv4l2deviceprovider.c b/sys/v4l2/gstv4l2deviceprovider.c index e49e7e592b..8e366d478a 100644 --- 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);