pulse: 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
f79de9a420
commit
e9613c8512
@ -606,8 +606,8 @@ gst_pulse_device_new (guint device_index, const gchar * device_name,
|
|||||||
GstCaps * caps, const gchar * internal_name, GstPulseDeviceType type)
|
GstCaps * caps, const gchar * internal_name, GstPulseDeviceType type)
|
||||||
{
|
{
|
||||||
GstPulseDevice *gstdev;
|
GstPulseDevice *gstdev;
|
||||||
const gchar *element;
|
const gchar *element = NULL;
|
||||||
const gchar *klass;
|
const gchar *klass = NULL;
|
||||||
|
|
||||||
g_return_val_if_fail (device_name, NULL);
|
g_return_val_if_fail (device_name, NULL);
|
||||||
g_return_val_if_fail (internal_name, NULL);
|
g_return_val_if_fail (internal_name, NULL);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user