# 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 <string.h>
#include <inttypes.h>
#include <gst/base/gsttypefindhelper.h>
* Boston, MA 02111-1307, USA.
*/
-#define GLIB_DISABLE_DEPRECATION_WARNINGS
-
#include <string.h>
#include <libxml/parser.h>
#include <libxml/tree.h>
GstMpdClient *client;
client = g_new0 (GstMpdClient, 1);
- client->lock = g_mutex_new ();
+ g_mutex_init (&client->lock);
return client;
}
gst_active_streams_free (client);
- if (client->lock)
- g_mutex_free (client->lock);
+ g_mutex_clear (&client->lock);
g_free (client->mpd_uri);
typedef struct _GstURLType GstURLType;
typedef struct _GstMultSegmentBaseType GstMultSegmentBaseType;
-#define GST_MPD_CLIENT_LOCK(c) g_mutex_lock (c->lock);
-#define GST_MPD_CLIENT_UNLOCK(c) g_mutex_unlock (c->lock);
+#define GST_MPD_CLIENT_LOCK(c) g_mutex_lock (&c->lock);
+#define GST_MPD_CLIENT_UNLOCK(c) g_mutex_unlock (&c->lock);
typedef enum
{
guint update_failed_count;
gchar *mpd_uri; /* manifest file URI */
- GMutex *lock;
+ GMutex lock;
};
/* Basic initialization/deinitialization functions */