Remove glib-compat-private.h stuff we don't need any more
authorTim-Philipp Müller <tim@centricular.net>
Sun, 9 Sep 2012 17:36:49 +0000 (18:36 +0100)
committerTim-Philipp Müller <tim@centricular.net>
Sun, 9 Sep 2012 17:36:49 +0000 (18:36 +0100)
It's all been ported to the latest GLib API now.

19 files changed:
ext/alsa/gstalsasink.c
ext/alsa/gstalsasrc.c
ext/ogg/gstoggdemux.c
gst-libs/gst/app/gstappsink.c
gst-libs/gst/app/gstappsrc.c
gst-libs/gst/audio/gstaudioringbuffer.c
gst-libs/gst/audio/gstaudiosink.c
gst-libs/gst/audio/gstaudiosrc.c
gst-libs/gst/glib-compat-private.h
gst-libs/gst/pbutils/gstdiscoverer.c
gst-libs/gst/rtsp/gstrtspconnection.c
gst-libs/gst/video/convertframe.c
gst/playback/gstdecodebin2.c
gst/playback/gstplaybin2.c
gst/playback/gstplaysinkconvertbin.c
gst/playback/gstsubtitleoverlay.c
gst/playback/gsturidecodebin.c
sys/ximage/ximagesink.c
sys/xvimage/xvimagesink.c

index 8fb7891..7dd4eb0 100644 (file)
@@ -53,7 +53,6 @@
 
 #include <gst/audio/gstaudioiec61937.h>
 #include <gst/gst-i18n-plugin.h>
-#include "gst/glib-compat-private.h"
 
 #define DEFAULT_DEVICE         "default"
 #define DEFAULT_DEVICE_NAME    ""
index 55eaedc..3e11bf5 100644 (file)
@@ -48,7 +48,6 @@
 
 #include "gstalsasrc.h"
 #include "gstalsadeviceprobe.h"
-#include "gst/glib-compat-private.h"
 
 #include <gst/gst-i18n-plugin.h>
 
index 4844ff1..22f42cb 100644 (file)
@@ -46,8 +46,6 @@
 
 #include "gstoggdemux.h"
 
-#include "gst/glib-compat-private.h"
-
 #define CHUNKSIZE (8500)        /* this is out of vorbisfile */
 
 /* we hope we get a granpos within this many bytes off the end */
index dd8a6ec..5270b51 100644 (file)
@@ -74,8 +74,6 @@
 #include "gstapp-marshal.h"
 #include "gstappsink.h"
 
-#include "gst/glib-compat-private.h"
-
 struct _GstAppSinkPrivate
 {
   GstCaps *caps;
index 6e8459d..d096a23 100644 (file)
 #include "gstapp-marshal.h"
 #include "gstappsrc.h"
 
-#include "gst/glib-compat-private.h"
-
 struct _GstAppSrcPrivate
 {
   GCond *cond;
index 60e2029..4893133 100644 (file)
@@ -43,8 +43,6 @@
 
 #include "gstaudioringbuffer.h"
 
-#include "gst/glib-compat-private.h"
-
 GST_DEBUG_CATEGORY_STATIC (gst_audio_ring_buffer_debug);
 #define GST_CAT_DEFAULT gst_audio_ring_buffer_debug
 
index 6efa2f5..c10c5a1 100644 (file)
@@ -71,8 +71,6 @@
 
 #include "gstaudiosink.h"
 
-#include "gst/glib-compat-private.h"
-
 GST_DEBUG_CATEGORY_STATIC (gst_audio_sink_debug);
 #define GST_CAT_DEFAULT gst_audio_sink_debug
 
index a09cf87..d6eff00 100644 (file)
@@ -71,8 +71,6 @@
 
 #include "gstaudiosrc.h"
 
-#include "gst/glib-compat-private.h"
-
 GST_DEBUG_CATEGORY_STATIC (gst_audio_src_debug);
 #define GST_CAT_DEFAULT gst_audio_src_debug
 
index 53a9c80..51cb6a7 100644 (file)
 #ifndef __GLIB_COMPAT_PRIVATE_H__
 #define __GLIB_COMPAT_PRIVATE_H__
 
+#if 0
 #include <glib.h>
 
 G_BEGIN_DECLS
 
-/* FIXME: can use unconditionally now */
-#define GLIB_HAS_GDATETIME
-
-/* FIXME: can use the new functions unconditionally now */
-#define G_ATOMIC_POINTER_COMPARE_AND_EXCHANGE(a,b,c) \
-    g_atomic_pointer_compare_and_exchange ((a),(b),(c))
-#define G_ATOMIC_INT_COMPARE_AND_EXCHANGE(a,b,c) \
-    g_atomic_int_compare_and_exchange ((a),(b),(c))
-#define G_ATOMIC_INT_ADD(a,b) g_atomic_int_add ((a),(b))
-
 /* copies */
 
-/* FIXME: use new GLib API */
-#define g_mutex_new gst_g_mutex_new
-static inline GMutex *
-gst_g_mutex_new (void)
-{
-  GMutex *mutex = g_slice_new (GMutex);
-  g_mutex_init (mutex);
-  return mutex;
-}
-#define g_mutex_free gst_g_mutex_free
-static inline void
-gst_g_mutex_free (GMutex *mutex)
-{
-  g_mutex_clear (mutex);
-  g_slice_free (GMutex, mutex);
-}
-#define g_static_rec_mutex_init gst_g_static_rec_mutex_init
-static inline void
-gst_g_static_rec_mutex_init (GStaticRecMutex *mutex)
-{
-  static const GStaticRecMutex init_mutex = G_STATIC_REC_MUTEX_INIT;
-
-  *mutex = init_mutex;
-}
-#define g_cond_new gst_g_cond_new
-static inline GCond *
-gst_g_cond_new (void)
-{
-  GCond *cond = g_slice_new (GCond);
-  g_cond_init (cond);
-  return cond;
-}
-#define g_cond_free gst_g_cond_free
-static inline void
-gst_g_cond_free (GCond *cond)
-{
-  g_cond_clear (cond);
-  g_slice_free (GCond, cond);
-}
-#define g_cond_timed_wait gst_g_cond_timed_wait
-static inline gboolean
-gst_g_cond_timed_wait (GCond *cond, GMutex *mutex, GTimeVal *abs_time)
-{
-  gint64 end_time;
-
-  if (abs_time == NULL) {
-    g_cond_wait (cond, mutex);
-    return TRUE;
-  }
-
-  end_time = abs_time->tv_sec;
-  end_time *= 1000000;
-  end_time += abs_time->tv_usec;
-
-  /* would be nice if we had clock_rtoffset, but that didn't seem to
-   * make it into the kernel yet...
-   */
-  /* if CLOCK_MONOTONIC is not defined then g_get_montonic_time() and
-   * g_get_real_time() are returning the same clock and we'd add ~0
-   */
-  end_time += g_get_monotonic_time () - g_get_real_time ();
-  return g_cond_wait_until (cond, mutex, end_time);
-}
-
 /* adaptations */
 
 G_END_DECLS
+#endif
 
 #endif
index 2630eaa..3403d75 100644 (file)
@@ -47,8 +47,6 @@
 #include "pbutils.h"
 #include "pbutils-private.h"
 
-#include "gst/glib-compat-private.h"
-
 GST_DEBUG_CATEGORY_STATIC (discoverer_debug);
 #define GST_CAT_DEFAULT discoverer_debug
 
index 69dedbe..64a0608 100644 (file)
@@ -67,8 +67,6 @@
 
 #include "gstrtspconnection.h"
 
-#include "gst/glib-compat-private.h"
-
 #ifdef IP_TOS
 union gst_sockaddr
 {
index 1bffe4f..8e5ee10 100644 (file)
@@ -22,8 +22,6 @@
 #include <string.h>
 #include "video.h"
 
-#include "gst/glib-compat-private.h"
-
 static gboolean
 caps_are_raw (const GstCaps * caps)
 {
index 146143c..9057044 100644 (file)
@@ -99,8 +99,6 @@
 #include "gstplayback.h"
 #include "gstrawcaps.h"
 
-#include "gst/glib-compat-private.h"
-
 /* Also used by gsturidecodebin.c */
 gint _decode_bin_compare_factories_func (gconstpointer p1, gconstpointer p2);
 
index 738a372..4540150 100644 (file)
 #include "gstplayback.h"
 #include "gstplaysink.h"
 #include "gstsubtitleoverlay.h"
-#include "gst/glib-compat-private.h"
+
 GST_DEBUG_CATEGORY_STATIC (gst_play_bin_debug);
 #define GST_CAT_DEFAULT gst_play_bin_debug
 
index 81619dc..0b5c368 100644 (file)
@@ -26,7 +26,6 @@
 
 #include <gst/pbutils/pbutils.h>
 #include <gst/gst-i18n-plugin.h>
-#include "gst/glib-compat-private.h"
 
 GST_DEBUG_CATEGORY_STATIC (gst_play_sink_convert_bin_debug);
 #define GST_CAT_DEFAULT gst_play_sink_convert_bin_debug
index 4d6e720..caf431d 100644 (file)
@@ -44,8 +44,6 @@
 #include <gst/video/video.h>
 #include <string.h>
 
-#include "gst/glib-compat-private.h"
-
 GST_DEBUG_CATEGORY_STATIC (subtitle_overlay_debug);
 #define GST_CAT_DEFAULT subtitle_overlay_debug
 
index ceefd74..a28a566 100644 (file)
@@ -42,8 +42,6 @@
 #include "gstrawcaps.h"
 #include "gstplayback.h"
 
-#include "gst/glib-compat-private.h"
-
 /* From gstdecodebin2.c */
 gint _decode_bin_compare_factories_func (gconstpointer p1, gconstpointer p2);
 
index 1540d96..376a6b2 100644 (file)
 /* Debugging category */
 #include <gst/gstinfo.h>
 
-#include "gst/glib-compat-private.h"
-
 /* for XkbKeycodeToKeysym */
 #include <X11/XKBlib.h>
 
index c766d25..3990bfa 100644 (file)
 /* Debugging category */
 #include <gst/gstinfo.h>
 
-#include "gst/glib-compat-private.h"
-
 /* for XkbKeycodeToKeysym */
 #include <X11/XKBlib.h>