[farsight2/master] Add main context
Olivier Crête
olivier.crete at collabora.co.uk
Tue Dec 23 15:26:03 PST 2008
---
transmitters/nice/fs-nice-transmitter.c | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/transmitters/nice/fs-nice-transmitter.c b/transmitters/nice/fs-nice-transmitter.c
index 109793d..467bac2 100644
--- a/transmitters/nice/fs-nice-transmitter.c
+++ b/transmitters/nice/fs-nice-transmitter.c
@@ -73,6 +73,8 @@ struct _FsNiceTransmitterPrivate
/* They are tables of pointers, one per component */
GstElement **src_funnels;
GstElement **sink_tees;
+
+ GMainContext *main_context;
};
#define FS_NICE_TRANSMITTER_GET_PRIVATE(o) \
@@ -197,6 +199,8 @@ fs_nice_transmitter_init (FsNiceTransmitter *self)
self->priv = FS_NICE_TRANSMITTER_GET_PRIVATE (self);
self->components = 2;
+
+ self->priv->main_context = g_main_context_new ();
}
static void
@@ -379,6 +383,13 @@ fs_nice_transmitter_finalize (GObject *object)
self->priv->sink_tees = NULL;
}
+ if (self->priv->main_context)
+ {
+ g_main_context_unref (self->priv->main_context);
+ self->priv->main_context = NULL;
+ }
+
+
parent_class->finalize (object);
}
--
1.5.6.5
More information about the farsight-commits
mailing list