[farsight2/master] Announce a src pad if its made available after the substream creation

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


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

diff --git a/gst/fsrtpconference/fs-rtp-substream.c b/gst/fsrtpconference/fs-rtp-substream.c
index b02485c..3d30d36 100644
--- a/gst/fsrtpconference/fs-rtp-substream.c
+++ b/gst/fsrtpconference/fs-rtp-substream.c
@@ -465,8 +465,17 @@ fs_rtp_sub_stream_add_codecbin_locked (FsRtpSubStream *substream,
   gst_pad_set_blocked_async (substream->priv->rtpbin_pad, FALSE, _blocked_cb,
     NULL);
 
-
-  return TRUE;
+  /* Announce the pad if it wasnt there already and this substream
+   * has a stream
+   */
+  if (!substream->priv->output_ghostpad &&
+      substream->priv->stream)
+    return fs_rtp_stream_announce (substream->priv->stream,
+        substream,
+        codec,
+        error);
+  else
+    return TRUE;
 
  error:
     gst_element_set_state (codecbin, GST_STATE_NULL);
-- 
1.5.6.5




More information about the farsight-commits mailing list