[farsight2/master] Don't mix src and sin kpads in creating the codecbin

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


---
 gst/fsrtpconference/fs-rtp-session.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/gst/fsrtpconference/fs-rtp-session.c b/gst/fsrtpconference/fs-rtp-session.c
index f1475ac..ab159cf 100644
--- a/gst/fsrtpconference/fs-rtp-session.c
+++ b/gst/fsrtpconference/fs-rtp-session.c
@@ -2438,7 +2438,7 @@ _create_codec_bin (const CodecAssociation *ca, const FsCodec *codec,
 
     if (codec_bin)
     {
-      if (src_pad_count != 1 || sink_pad_count == 0)
+      if (sink_pad_count != 1 || src_pad_count == 0)
       {
         GST_ERROR ("Invalid pad count (src:%u sink:%u)"
             " from codec profile: %s", src_pad_count, sink_pad_count, profile);
@@ -2447,7 +2447,7 @@ _create_codec_bin (const CodecAssociation *ca, const FsCodec *codec,
         goto try_factory;
       }
 
-      if (codecs && sink_pad_count > 1)
+      if (codecs && src_pad_count > 1)
       {
         GstIterator *iter;
         GValue valid = {0};
-- 
1.5.6.5




More information about the farsight-commits mailing list