[farsight2/master] Set the new sync property to TRUE on the valve on the substreams to not empty the jitterbuffer

Olivier Crête olivier.crete at collabora.co.uk
Tue Dec 23 15:21:15 PST 2008


---
 gst/fsrtpconference/fs-rtp-substream.c |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/gst/fsrtpconference/fs-rtp-substream.c b/gst/fsrtpconference/fs-rtp-substream.c
index c395850..fd7d6d9 100644
--- a/gst/fsrtpconference/fs-rtp-substream.c
+++ b/gst/fsrtpconference/fs-rtp-substream.c
@@ -303,7 +303,6 @@ fs_rtp_sub_stream_constructed (GObject *object)
     return;
   }
 
-
   if (!gst_bin_add (GST_BIN (self->priv->conference), self->priv->valve)) {
     self->priv->construction_error = g_error_new (FS_ERROR,
       FS_ERROR_CONSTRUCTION, "Could not add the fsvalve element for session"
@@ -313,7 +312,12 @@ fs_rtp_sub_stream_constructed (GObject *object)
   }
 
   /* We set the valve to dropping, the stream will unblock it when its linked */
-  g_object_set (self->priv->valve, "drop", TRUE, NULL);
+  /* We also sync so as to not empty the JB */
+  g_object_set (self->priv->valve,
+      "drop", TRUE,
+      "sync", TRUE,
+      NULL);
+
 
   if (gst_element_set_state (self->priv->valve, GST_STATE_PLAYING) ==
     GST_STATE_CHANGE_FAILURE) {
-- 
1.5.6.5




More information about the farsight-commits mailing list