From: David Schleef Date: Sat, 3 Jul 2004 23:35:36 +0000 (+0000) Subject: ext/alsa/gstalsaplugin.c: Disable call to gst_debug_log() if debugging is disabled... X-Git-Tag: 1.19.3~511^2~14017 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a0dd75c6926283b1ad30149e6b4bb1d6c20fd892;p=platform%2Fupstream%2Fgstreamer.git ext/alsa/gstalsaplugin.c: Disable call to gst_debug_log() if debugging is disabled (bug #145118) Original commit message from CVS: * ext/alsa/gstalsaplugin.c: (gst_alsa_error_wrapper): Disable call to gst_debug_log() if debugging is disabled (bug #145118) --- diff --git a/ChangeLog b/ChangeLog index 192d2ff..76e5eae 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2004-07-03 David Schleef + + * ext/alsa/gstalsaplugin.c: (gst_alsa_error_wrapper): Disable + call to gst_debug_log() if debugging is disabled (bug #145118) + 2004-07-03 Benjamin Otte * ext/alsa/gstalsa.c: (gst_alsa_xrun_recovery): diff --git a/ext/alsa/gstalsaplugin.c b/ext/alsa/gstalsaplugin.c index c97b7aa..9486c3a 100644 --- a/ext/alsa/gstalsaplugin.c +++ b/ext/alsa/gstalsaplugin.c @@ -34,6 +34,7 @@ static void gst_alsa_error_wrapper (const char *file, int line, const char *function, int err, const char *fmt, ...) { +#ifndef GST_DISABLE_GST_DEBUG va_list args; gchar *str; @@ -47,6 +48,7 @@ gst_alsa_error_wrapper (const char *file, int line, const char *function, "alsalib error: %s%s%s", str, err ? ": " : "", err ? snd_strerror (err) : ""); g_free (str); +#endif } static gboolean