[0.11] gst-plugins-base: Suppress deprecations in selected files

Edward Hervey bilboed at kemper.freedesktop.org
Wed Jan 25 05:53:50 PST 2012


Module: gst-plugins-base
Branch: 0.11
Commit: 47fc70ea79a6df2f1412163a32e90cdbe5b221a2
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-base/commit/?id=47fc70ea79a6df2f1412163a32e90cdbe5b221a2

Author: Edward Hervey <edward.hervey at collabora.co.uk>
Date:   Wed Jan 25 12:50:44 2012 +0100

Suppress deprecations in selected files

---

 gst/adder/gstadder.c            |    5 +++++
 tests/examples/audio/audiomix.c |    3 +++
 tests/examples/audio/volume.c   |    3 +++
 tests/examples/seek/jsseek.c    |    3 +++
 tests/examples/seek/scrubby.c   |    6 ++++++
 tests/examples/seek/seek.c      |    3 +++
 tests/icles/test-colorkey.c     |    3 +++
 tests/icles/test-videooverlay.c |    3 +++
 8 files changed, 29 insertions(+), 0 deletions(-)

diff --git a/gst/adder/gstadder.c b/gst/adder/gstadder.c
index 47e58ad..e45665a 100644
--- a/gst/adder/gstadder.c
+++ b/gst/adder/gstadder.c
@@ -43,6 +43,11 @@
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
+
+/* FIXME 0.11: suppress warnings for deprecated API such as GStaticRecMutex
+ * with newer GLib versions (>= 2.31.0) */
+#define GLIB_DISABLE_DEPRECATION_WARNINGS
+
 #include "gstadder.h"
 #include <gst/audio/audio.h>
 #include <string.h>             /* strcmp */
diff --git a/tests/examples/audio/audiomix.c b/tests/examples/audio/audiomix.c
index 937f4db..4ad1894 100644
--- a/tests/examples/audio/audiomix.c
+++ b/tests/examples/audio/audiomix.c
@@ -23,6 +23,9 @@
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
+/* FIXME 0.11: suppress warnings for deprecated API such as GStaticRecMutex
+ * with newer GTK versions (>= 3.3.0) */
+#define GDK_DISABLE_DEPRECATION_WARNINGS
 
 #include <string.h>
 #include <gst/gst.h>
diff --git a/tests/examples/audio/volume.c b/tests/examples/audio/volume.c
index d5bf9ed..a5e13c4 100644
--- a/tests/examples/audio/volume.c
+++ b/tests/examples/audio/volume.c
@@ -23,6 +23,9 @@
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
+/* FIXME 0.11: suppress warnings for deprecated API such as GStaticRecMutex
+ * with newer GTK versions (>= 3.3.0) */
+#define GDK_DISABLE_DEPRECATION_WARNINGS
 
 #include <math.h>
 
diff --git a/tests/examples/seek/jsseek.c b/tests/examples/seek/jsseek.c
index 2e2beb8..5c85f12 100644
--- a/tests/examples/seek/jsseek.c
+++ b/tests/examples/seek/jsseek.c
@@ -24,6 +24,9 @@
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
+/* FIXME 0.11: suppress warnings for deprecated API such as GStaticRecMutex
+ * with newer GTK versions (>= 3.3.0) */
+#define GDK_DISABLE_DEPRECATION_WARNINGS
 
 #include <glib.h>
 #include <glib/gstdio.h>
diff --git a/tests/examples/seek/scrubby.c b/tests/examples/seek/scrubby.c
index d77ca24..ac5b2b4 100644
--- a/tests/examples/seek/scrubby.c
+++ b/tests/examples/seek/scrubby.c
@@ -1,3 +1,9 @@
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+/* FIXME 0.11: suppress warnings for deprecated API such as GStaticRecMutex
+ * with newer GTK versions (>= 3.3.0) */
+#define GDK_DISABLE_DEPRECATION_WARNINGS
 #include <stdlib.h>
 #include <glib.h>
 #include <gtk/gtk.h>
diff --git a/tests/examples/seek/seek.c b/tests/examples/seek/seek.c
index e556c64..2640cca 100644
--- a/tests/examples/seek/seek.c
+++ b/tests/examples/seek/seek.c
@@ -24,6 +24,9 @@
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
+/* FIXME 0.11: suppress warnings for deprecated API such as GStaticRecMutex
+ * with newer GTK versions (>= 3.3.0) */
+#define GDK_DISABLE_DEPRECATION_WARNINGS
 
 #include <stdlib.h>
 #include <math.h>
diff --git a/tests/icles/test-colorkey.c b/tests/icles/test-colorkey.c
index f7fab58..d47df63 100644
--- a/tests/icles/test-colorkey.c
+++ b/tests/icles/test-colorkey.c
@@ -22,6 +22,9 @@
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
+/* FIXME 0.11: suppress warnings for deprecated API such as GStaticRecMutex
+ * with newer GTK versions (>= 3.3.0) */
+#define GDK_DISABLE_DEPRECATION_WARNINGS
 
 #include <stdlib.h>
 #include <string.h>
diff --git a/tests/icles/test-videooverlay.c b/tests/icles/test-videooverlay.c
index 8b5f5e4..a9094dd 100644
--- a/tests/icles/test-videooverlay.c
+++ b/tests/icles/test-videooverlay.c
@@ -22,6 +22,9 @@
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
+/* FIXME 0.11: suppress warnings for deprecated API such as GStaticRecMutex
+ * with newer GTK versions (>= 3.3.0) */
+#define GDK_DISABLE_DEPRECATION_WARNINGS
 
 #include <stdlib.h>
 #include <string.h>



More information about the gstreamer-commits mailing list