[farsight2/master] Set sync/async properties before potentially going to playing
Olivier Crête
olivier.crete at collabora.co.uk
Tue Dec 23 15:26:18 PST 2008
---
transmitters/nice/fs-nice-transmitter.c | 12 +++++++-----
1 files changed, 7 insertions(+), 5 deletions(-)
diff --git a/transmitters/nice/fs-nice-transmitter.c b/transmitters/nice/fs-nice-transmitter.c
index cf24a4a..4eca537 100644
--- a/transmitters/nice/fs-nice-transmitter.c
+++ b/transmitters/nice/fs-nice-transmitter.c
@@ -831,6 +831,13 @@ _create_sinksource (
"component", component_id,
NULL);
+
+ if (direction == GST_PAD_SINK)
+ g_object_set (elem,
+ "async", FALSE,
+ "sync", FALSE,
+ NULL);
+
if (!gst_bin_add (bin, elem))
{
g_set_error (error, FS_ERROR, FS_ERROR_CONSTRUCTION,
@@ -948,11 +955,6 @@ fs_nice_transmitter_add_gst_stream (FsNiceTransmitter *self,
if (ns->nicesinks[c] == NULL)
goto error;
-
- g_object_set (ns->nicesinks[c],
- "async", FALSE,
- "sync", FALSE,
- NULL);
}
return ns;
--
1.5.6.5
More information about the farsight-commits
mailing list