From: Tim-Philipp Müller Date: Sun, 29 Jun 2014 16:03:17 +0000 (+0100) Subject: v4l2: fix compiler warnings when compiling with -DG_DISABLE_ASSERT X-Git-Tag: 1.3.91~28 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f79de9a420922c22e5347e9a8b0d9585d88230ec;p=platform%2Fupstream%2Fgst-plugins-good.git 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. --- diff --git a/sys/v4l2/gstv4l2deviceprovider.c b/sys/v4l2/gstv4l2deviceprovider.c index e49e7e5..8e366d4 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);