summaryrefslogtreecommitdiffstats
path: root/gst-libs
diff options
context:
space:
mode:
Diffstat (limited to 'gst-libs')
-rw-r--r--gst-libs/gst/media-info/media-info.c11
-rw-r--r--gst-libs/gst/riff/riffutil.c8
2 files changed, 19 insertions, 0 deletions
diff --git a/gst-libs/gst/media-info/media-info.c b/gst-libs/gst/media-info/media-info.c
index e2afd51b..067286c4 100644
--- a/gst-libs/gst/media-info/media-info.c
+++ b/gst-libs/gst/media-info/media-info.c
@@ -22,9 +22,20 @@
#include "media-info.h"
static gboolean _gst_media_info_debug = TRUE;
+
+#ifdef G_HAVE_ISO_VARARGS
+
+#define GMI_DEBUG(...) \
+ { if (_gst_media_info_debug) { g_print ( __VA_ARGS__ ); }}
+
+#elif defined(G_HAVE_GNUC_VARARGS)
+
#define GMI_DEBUG(format, args...) \
{ if (_gst_media_info_debug) { g_print ( format , ## args ); }}
+#endif
+
+
struct GstMediaInfoPriv
{
GstElement *pipeline;
diff --git a/gst-libs/gst/riff/riffutil.c b/gst-libs/gst/riff/riffutil.c
index e4c134fb..f754f755 100644
--- a/gst-libs/gst/riff/riffutil.c
+++ b/gst-libs/gst/riff/riffutil.c
@@ -21,8 +21,16 @@
#include <riff.h>
/*#define debug(format,args...) g_print(format,##args) */
+
+#ifdef G_HAVE_ISO_VARARGS
+
+#define debug(format,...)
+
+#elif defined(G_HAVE_GNUC_VARARGS)
+
#define debug(format,args...)
+#endif
gulong gst_riff_fourcc_to_id(gchar *fourcc) {
g_return_val_if_fail(fourcc != NULL, 0);