mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
Remove glib-compat-private.h stuff we don't need any more
It's all been ported to the latest GLib API now.
This commit is contained in:
parent
202cd3c17c
commit
2079a8c12b
19 changed files with 3 additions and 106 deletions
|
@ -53,7 +53,6 @@
|
||||||
|
|
||||||
#include <gst/audio/gstaudioiec61937.h>
|
#include <gst/audio/gstaudioiec61937.h>
|
||||||
#include <gst/gst-i18n-plugin.h>
|
#include <gst/gst-i18n-plugin.h>
|
||||||
#include "gst/glib-compat-private.h"
|
|
||||||
|
|
||||||
#define DEFAULT_DEVICE "default"
|
#define DEFAULT_DEVICE "default"
|
||||||
#define DEFAULT_DEVICE_NAME ""
|
#define DEFAULT_DEVICE_NAME ""
|
||||||
|
|
|
@ -48,7 +48,6 @@
|
||||||
|
|
||||||
#include "gstalsasrc.h"
|
#include "gstalsasrc.h"
|
||||||
#include "gstalsadeviceprobe.h"
|
#include "gstalsadeviceprobe.h"
|
||||||
#include "gst/glib-compat-private.h"
|
|
||||||
|
|
||||||
#include <gst/gst-i18n-plugin.h>
|
#include <gst/gst-i18n-plugin.h>
|
||||||
|
|
||||||
|
|
|
@ -46,8 +46,6 @@
|
||||||
|
|
||||||
#include "gstoggdemux.h"
|
#include "gstoggdemux.h"
|
||||||
|
|
||||||
#include "gst/glib-compat-private.h"
|
|
||||||
|
|
||||||
#define CHUNKSIZE (8500) /* this is out of vorbisfile */
|
#define CHUNKSIZE (8500) /* this is out of vorbisfile */
|
||||||
|
|
||||||
/* we hope we get a granpos within this many bytes off the end */
|
/* we hope we get a granpos within this many bytes off the end */
|
||||||
|
|
|
@ -74,8 +74,6 @@
|
||||||
#include "gstapp-marshal.h"
|
#include "gstapp-marshal.h"
|
||||||
#include "gstappsink.h"
|
#include "gstappsink.h"
|
||||||
|
|
||||||
#include "gst/glib-compat-private.h"
|
|
||||||
|
|
||||||
struct _GstAppSinkPrivate
|
struct _GstAppSinkPrivate
|
||||||
{
|
{
|
||||||
GstCaps *caps;
|
GstCaps *caps;
|
||||||
|
|
|
@ -100,8 +100,6 @@
|
||||||
#include "gstapp-marshal.h"
|
#include "gstapp-marshal.h"
|
||||||
#include "gstappsrc.h"
|
#include "gstappsrc.h"
|
||||||
|
|
||||||
#include "gst/glib-compat-private.h"
|
|
||||||
|
|
||||||
struct _GstAppSrcPrivate
|
struct _GstAppSrcPrivate
|
||||||
{
|
{
|
||||||
GCond *cond;
|
GCond *cond;
|
||||||
|
|
|
@ -43,8 +43,6 @@
|
||||||
|
|
||||||
#include "gstaudioringbuffer.h"
|
#include "gstaudioringbuffer.h"
|
||||||
|
|
||||||
#include "gst/glib-compat-private.h"
|
|
||||||
|
|
||||||
GST_DEBUG_CATEGORY_STATIC (gst_audio_ring_buffer_debug);
|
GST_DEBUG_CATEGORY_STATIC (gst_audio_ring_buffer_debug);
|
||||||
#define GST_CAT_DEFAULT gst_audio_ring_buffer_debug
|
#define GST_CAT_DEFAULT gst_audio_ring_buffer_debug
|
||||||
|
|
||||||
|
|
|
@ -71,8 +71,6 @@
|
||||||
|
|
||||||
#include "gstaudiosink.h"
|
#include "gstaudiosink.h"
|
||||||
|
|
||||||
#include "gst/glib-compat-private.h"
|
|
||||||
|
|
||||||
GST_DEBUG_CATEGORY_STATIC (gst_audio_sink_debug);
|
GST_DEBUG_CATEGORY_STATIC (gst_audio_sink_debug);
|
||||||
#define GST_CAT_DEFAULT gst_audio_sink_debug
|
#define GST_CAT_DEFAULT gst_audio_sink_debug
|
||||||
|
|
||||||
|
|
|
@ -71,8 +71,6 @@
|
||||||
|
|
||||||
#include "gstaudiosrc.h"
|
#include "gstaudiosrc.h"
|
||||||
|
|
||||||
#include "gst/glib-compat-private.h"
|
|
||||||
|
|
||||||
GST_DEBUG_CATEGORY_STATIC (gst_audio_src_debug);
|
GST_DEBUG_CATEGORY_STATIC (gst_audio_src_debug);
|
||||||
#define GST_CAT_DEFAULT gst_audio_src_debug
|
#define GST_CAT_DEFAULT gst_audio_src_debug
|
||||||
|
|
||||||
|
|
|
@ -23,88 +23,16 @@
|
||||||
#ifndef __GLIB_COMPAT_PRIVATE_H__
|
#ifndef __GLIB_COMPAT_PRIVATE_H__
|
||||||
#define __GLIB_COMPAT_PRIVATE_H__
|
#define __GLIB_COMPAT_PRIVATE_H__
|
||||||
|
|
||||||
|
#if 0
|
||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
|
|
||||||
G_BEGIN_DECLS
|
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 */
|
/* 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 */
|
/* adaptations */
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -47,8 +47,6 @@
|
||||||
#include "pbutils.h"
|
#include "pbutils.h"
|
||||||
#include "pbutils-private.h"
|
#include "pbutils-private.h"
|
||||||
|
|
||||||
#include "gst/glib-compat-private.h"
|
|
||||||
|
|
||||||
GST_DEBUG_CATEGORY_STATIC (discoverer_debug);
|
GST_DEBUG_CATEGORY_STATIC (discoverer_debug);
|
||||||
#define GST_CAT_DEFAULT discoverer_debug
|
#define GST_CAT_DEFAULT discoverer_debug
|
||||||
|
|
||||||
|
|
|
@ -67,8 +67,6 @@
|
||||||
|
|
||||||
#include "gstrtspconnection.h"
|
#include "gstrtspconnection.h"
|
||||||
|
|
||||||
#include "gst/glib-compat-private.h"
|
|
||||||
|
|
||||||
#ifdef IP_TOS
|
#ifdef IP_TOS
|
||||||
union gst_sockaddr
|
union gst_sockaddr
|
||||||
{
|
{
|
||||||
|
|
|
@ -22,8 +22,6 @@
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include "video.h"
|
#include "video.h"
|
||||||
|
|
||||||
#include "gst/glib-compat-private.h"
|
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
caps_are_raw (const GstCaps * caps)
|
caps_are_raw (const GstCaps * caps)
|
||||||
{
|
{
|
||||||
|
|
|
@ -99,8 +99,6 @@
|
||||||
#include "gstplayback.h"
|
#include "gstplayback.h"
|
||||||
#include "gstrawcaps.h"
|
#include "gstrawcaps.h"
|
||||||
|
|
||||||
#include "gst/glib-compat-private.h"
|
|
||||||
|
|
||||||
/* Also used by gsturidecodebin.c */
|
/* Also used by gsturidecodebin.c */
|
||||||
gint _decode_bin_compare_factories_func (gconstpointer p1, gconstpointer p2);
|
gint _decode_bin_compare_factories_func (gconstpointer p1, gconstpointer p2);
|
||||||
|
|
||||||
|
|
|
@ -236,7 +236,7 @@
|
||||||
#include "gstplayback.h"
|
#include "gstplayback.h"
|
||||||
#include "gstplaysink.h"
|
#include "gstplaysink.h"
|
||||||
#include "gstsubtitleoverlay.h"
|
#include "gstsubtitleoverlay.h"
|
||||||
#include "gst/glib-compat-private.h"
|
|
||||||
GST_DEBUG_CATEGORY_STATIC (gst_play_bin_debug);
|
GST_DEBUG_CATEGORY_STATIC (gst_play_bin_debug);
|
||||||
#define GST_CAT_DEFAULT gst_play_bin_debug
|
#define GST_CAT_DEFAULT gst_play_bin_debug
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,6 @@
|
||||||
|
|
||||||
#include <gst/pbutils/pbutils.h>
|
#include <gst/pbutils/pbutils.h>
|
||||||
#include <gst/gst-i18n-plugin.h>
|
#include <gst/gst-i18n-plugin.h>
|
||||||
#include "gst/glib-compat-private.h"
|
|
||||||
|
|
||||||
GST_DEBUG_CATEGORY_STATIC (gst_play_sink_convert_bin_debug);
|
GST_DEBUG_CATEGORY_STATIC (gst_play_sink_convert_bin_debug);
|
||||||
#define GST_CAT_DEFAULT gst_play_sink_convert_bin_debug
|
#define GST_CAT_DEFAULT gst_play_sink_convert_bin_debug
|
||||||
|
|
|
@ -44,8 +44,6 @@
|
||||||
#include <gst/video/video.h>
|
#include <gst/video/video.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include "gst/glib-compat-private.h"
|
|
||||||
|
|
||||||
GST_DEBUG_CATEGORY_STATIC (subtitle_overlay_debug);
|
GST_DEBUG_CATEGORY_STATIC (subtitle_overlay_debug);
|
||||||
#define GST_CAT_DEFAULT subtitle_overlay_debug
|
#define GST_CAT_DEFAULT subtitle_overlay_debug
|
||||||
|
|
||||||
|
|
|
@ -42,8 +42,6 @@
|
||||||
#include "gstrawcaps.h"
|
#include "gstrawcaps.h"
|
||||||
#include "gstplayback.h"
|
#include "gstplayback.h"
|
||||||
|
|
||||||
#include "gst/glib-compat-private.h"
|
|
||||||
|
|
||||||
/* From gstdecodebin2.c */
|
/* From gstdecodebin2.c */
|
||||||
gint _decode_bin_compare_factories_func (gconstpointer p1, gconstpointer p2);
|
gint _decode_bin_compare_factories_func (gconstpointer p1, gconstpointer p2);
|
||||||
|
|
||||||
|
|
|
@ -115,8 +115,6 @@
|
||||||
/* Debugging category */
|
/* Debugging category */
|
||||||
#include <gst/gstinfo.h>
|
#include <gst/gstinfo.h>
|
||||||
|
|
||||||
#include "gst/glib-compat-private.h"
|
|
||||||
|
|
||||||
/* for XkbKeycodeToKeysym */
|
/* for XkbKeycodeToKeysym */
|
||||||
#include <X11/XKBlib.h>
|
#include <X11/XKBlib.h>
|
||||||
|
|
||||||
|
|
|
@ -130,8 +130,6 @@
|
||||||
/* Debugging category */
|
/* Debugging category */
|
||||||
#include <gst/gstinfo.h>
|
#include <gst/gstinfo.h>
|
||||||
|
|
||||||
#include "gst/glib-compat-private.h"
|
|
||||||
|
|
||||||
/* for XkbKeycodeToKeysym */
|
/* for XkbKeycodeToKeysym */
|
||||||
#include <X11/XKBlib.h>
|
#include <X11/XKBlib.h>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue