[farsight2/master] nice: Keep sinks state locked while not in bin
Olivier Crête
olivier.crete at collabora.co.uk
Mon Jul 20 14:11:04 PDT 2009
For some reason, they tend to lose their NULL state even though they have
no parent
---
transmitters/nice/fs-nice-transmitter.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/transmitters/nice/fs-nice-transmitter.c b/transmitters/nice/fs-nice-transmitter.c
index d113ca9..1c3d322 100644
--- a/transmitters/nice/fs-nice-transmitter.c
+++ b/transmitters/nice/fs-nice-transmitter.c
@@ -772,7 +772,6 @@ remove_sink (FsNiceTransmitter *self, NiceGstStream *ns, guint component_id)
ns->nicesinks[component_id]))
GST_ERROR ("Could not remove nicesink element from transmitter"
" sink");
- gst_element_set_locked_state (ns->nicesinks[component_id], FALSE);
}
@@ -885,6 +884,7 @@ fs_nice_transmitter_set_sending (FsNiceTransmitter *self,
GstStateChangeReturn ret;
GstPad *elempad;
+ gst_element_set_locked_state (ns->nicesinks[c], FALSE);
if (!gst_bin_add (GST_BIN (self->priv->gst_sink), ns->nicesinks[c]))
GST_ERROR ("Could not add nicesink element to the transmitter"
" sink");
--
1.5.6.5
More information about the farsight-commits
mailing list