[farsight2/master] Set the caps on the substream capsfilter

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


---
 gst/fsrtpconference/fs-rtp-substream.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/gst/fsrtpconference/fs-rtp-substream.c b/gst/fsrtpconference/fs-rtp-substream.c
index 65d4278..f67e8f6 100644
--- a/gst/fsrtpconference/fs-rtp-substream.c
+++ b/gst/fsrtpconference/fs-rtp-substream.c
@@ -790,6 +790,7 @@ fs_rtp_sub_stream_set_codecbin (FsRtpSubStream *substream,
     GstElement *codecbin,
     GError **error)
 {
+  GstCaps *caps = NULL;
 
   FS_RTP_SESSION_LOCK (substream->priv->session);
 
@@ -845,6 +846,10 @@ fs_rtp_sub_stream_set_codecbin (FsRtpSubStream *substream,
     goto error;
   }
 
+  caps = fs_codec_to_gst_caps (codec);
+  g_object_set (substream->priv->capsfilter, "caps", caps, NULL);
+  gst_caps_unref (caps);
+
   substream->priv->codecbin = codecbin;
   substream->priv->codec = fs_codec_copy (codec);
 
-- 
1.5.6.5




More information about the farsight-commits mailing list