[farsight2/master] Add mutex to nice transmitter
Olivier Crête
olivier.crete at collabora.co.uk
Tue Dec 23 15:26:08 PST 2008
---
transmitters/nice/fs-nice-transmitter.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/transmitters/nice/fs-nice-transmitter.c b/transmitters/nice/fs-nice-transmitter.c
index 64b8fda..7732856 100644
--- a/transmitters/nice/fs-nice-transmitter.c
+++ b/transmitters/nice/fs-nice-transmitter.c
@@ -80,6 +80,8 @@ struct _FsNiceTransmitterPrivate
NiceAgent *agent;
guint compatiblity_mode;
+
+ GMutex *mutex;
};
#define FS_NICE_TRANSMITTER_GET_PRIVATE(o) \
@@ -205,6 +207,8 @@ fs_nice_transmitter_init (FsNiceTransmitter *self)
self->components = 2;
+ self->priv->mutex = g_mutex_new ();
+
self->priv->main_context = g_main_context_new ();
self->priv->main_loop = g_main_loop_new (self->priv->main_context, FALSE);
@@ -422,6 +426,8 @@ fs_nice_transmitter_finalize (GObject *object)
self->priv->main_loop = NULL;
}
+ g_mutex_free (self->priv->mutex);
+
parent_class->finalize (object);
}
--
1.5.6.5
More information about the farsight-commits
mailing list