From 252327f87a420a4f019a5731c6a214809c9a12cc Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Thu, 19 Jan 2012 09:27:04 +0100 Subject: Update for new gthread API --- libs/gst/base/gstcollectpads.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'libs/gst/base/gstcollectpads.c') diff --git a/libs/gst/base/gstcollectpads.c b/libs/gst/base/gstcollectpads.c index d02fd303f..1ad5015c0 100644 --- a/libs/gst/base/gstcollectpads.c +++ b/libs/gst/base/gstcollectpads.c @@ -119,7 +119,7 @@ gst_collect_pads_init (GstCollectPads * pads) { pads->priv = GST_COLLECT_PADS_GET_PRIVATE (pads); - pads->cond = g_cond_new (); + g_cond_init (&pads->cond); pads->data = NULL; pads->cookie = 0; pads->numpads = 0; @@ -128,7 +128,7 @@ gst_collect_pads_init (GstCollectPads * pads) pads->started = FALSE; /* members to manage the pad list */ - pads->pad_lock = g_mutex_new (); + g_mutex_init (&pads->pad_lock); pads->pad_cookie = 0; pads->pad_list = NULL; } @@ -141,8 +141,8 @@ gst_collect_pads_finalize (GObject * object) GST_DEBUG ("finalize"); - g_cond_free (pads->cond); - g_mutex_free (pads->pad_lock); + g_cond_clear (&pads->cond); + g_mutex_clear (&pads->pad_lock); /* Remove pads */ collected = pads->pad_list; -- cgit v1.2.3