[0.11] gst-plugins-good: pulse: Fix a build warning when compiling with asserts disabled
Tim Müller
tpm at kemper.freedesktop.org
Sun Feb 26 17:02:22 PST 2012
Module: gst-plugins-good
Branch: 0.11
Commit: a32e030faadeb538b05ecc7920d74db9efedf4d4
URL: http://cgit.freedesktop.org/gstreamer/gst-plugins-good/commit/?id=a32e030faadeb538b05ecc7920d74db9efedf4d4
Author: Vincent Untz <vuntz at gnome.org>
Date: Tue Feb 21 17:57:44 2012 +0100
pulse: Fix a build warning when compiling with asserts disabled
Return a value even if the code will never be reached, to make compilers
happy.
https://bugzilla.gnome.org/show_bug.cgi?id=670561
---
ext/pulse/pulseaudiosink.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/ext/pulse/pulseaudiosink.c b/ext/pulse/pulseaudiosink.c
index cd9f7d9..22b439b 100644
--- a/ext/pulse/pulseaudiosink.c
+++ b/ext/pulse/pulseaudiosink.c
@@ -279,7 +279,9 @@ param_spec_copy (GParamSpec * spec)
g_warning ("Unknown param type %ld for '%s'",
(long) G_PARAM_SPEC_TYPE (spec), name);
- g_assert_not_reached ();
+
+ /* Make compiler happy */
+ return NULL;
}
static void
More information about the gstreamer-commits
mailing list