[farsight2/master] Create the bins using gst_bin_new() and have the FsRawUdpTransmitter ref them
Olivier Crête
olivier.crete at collabora.co.uk
Tue Dec 23 15:19:28 PST 2008
---
transmitters/rawudp/fs-rawudp-transmitter.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/transmitters/rawudp/fs-rawudp-transmitter.c b/transmitters/rawudp/fs-rawudp-transmitter.c
index 571ea14..46eabc7 100644
--- a/transmitters/rawudp/fs-rawudp-transmitter.c
+++ b/transmitters/rawudp/fs-rawudp-transmitter.c
@@ -184,7 +184,7 @@ fs_rawudp_transmitter_init (FsRawUdpTransmitter *self)
/* First we need the src elemnet */
- self->priv->gst_src = gst_element_factory_make ("bin", NULL);
+ self->priv->gst_src = gst_bin_new (NULL);
if (!self->priv->gst_src) {
trans->construction_error = g_error_new (FS_ERROR,
@@ -193,6 +193,8 @@ fs_rawudp_transmitter_init (FsRawUdpTransmitter *self)
return;
}
+ gst_object_ref (self->priv->gst_src);
+
/* Lets create the RTP source funnel */
self->priv->udpsrc_funnel = gst_element_factory_make ("fsfunnel", NULL);
@@ -245,7 +247,7 @@ fs_rawudp_transmitter_init (FsRawUdpTransmitter *self)
/* Second, we do the sink element */
- self->priv->gst_sink = gst_element_factory_make ("bin", NULL);
+ self->priv->gst_sink = gst_bin_new (NULL);
if (!self->priv->gst_sink) {
trans->construction_error = g_error_new (FS_ERROR,
@@ -254,6 +256,8 @@ fs_rawudp_transmitter_init (FsRawUdpTransmitter *self)
return;
}
+ gst_object_ref (self->priv->gst_sink);
+
/* Lets create the RTP source tee */
self->priv->udpsink_tee = gst_element_factory_make ("tee", NULL);
--
1.5.6.5
More information about the farsight-commits
mailing list