mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 09:10:36 +00:00
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.
This commit is contained in:
parent
4edbd4c368
commit
f79de9a420
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue