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:
f79de9a
)
pulse: fix compiler warnings when compiling with -DG_DISABLE_ASSERT
author
Tim-Philipp Müller
<tim@centricular.com>
Sun, 29 Jun 2014 16:05:13 +0000
(17:05 +0100)
committer
Tim-Philipp Müller
<tim@centricular.com>
Sun, 29 Jun 2014 16:06:30 +0000
(17:06 +0100)
Compiler complains about uninitialised variables in the impossible
'default' code path in device provider source/sink switch-case.
ext/pulse/pulsedeviceprovider.c
patch
|
blob
|
history
diff --git
a/ext/pulse/pulsedeviceprovider.c
b/ext/pulse/pulsedeviceprovider.c
index
8e91700
..
c96488c
100644
(file)
--- a/
ext/pulse/pulsedeviceprovider.c
+++ b/
ext/pulse/pulsedeviceprovider.c
@@
-606,8
+606,8
@@
gst_pulse_device_new (guint device_index, const gchar * device_name,
GstCaps * caps, const gchar * internal_name, GstPulseDeviceType type)
{
GstPulseDevice *gstdev;
- const gchar *element;
- const gchar *klass;
+ const gchar *element
= NULL
;
+ const gchar *klass
= NULL
;
g_return_val_if_fail (device_name, NULL);
g_return_val_if_fail (internal_name, NULL);