[farsight2/master] Put the codec bin ghost pads are the correct ends
Olivier Crête
olivier.crete at collabora.co.uk
Tue Dec 23 15:20:16 PST 2008
---
gst/fsrtpconference/fs-rtp-session.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/gst/fsrtpconference/fs-rtp-session.c b/gst/fsrtpconference/fs-rtp-session.c
index 23ea913..cfd343f 100644
--- a/gst/fsrtpconference/fs-rtp-session.c
+++ b/gst/fsrtpconference/fs-rtp-session.c
@@ -1688,9 +1688,9 @@ _create_codec_bin (CodecBlueprint *blueprint, const FsCodec *codec,
GstPadLinkReturn ret;
if (is_send)
- sinkpad = gst_element_get_static_pad (current_element, "sink");
- else
sinkpad = gst_element_get_static_pad (previous_element, "sink");
+ else
+ sinkpad = gst_element_get_static_pad (current_element, "sink");
if (!sinkpad) {
g_set_error (error, FS_ERROR, FS_ERROR_CONSTRUCTION,
@@ -1701,9 +1701,9 @@ _create_codec_bin (CodecBlueprint *blueprint, const FsCodec *codec,
if (is_send)
- srcpad = gst_element_get_static_pad (previous_element, "src");
- else
srcpad = gst_element_get_static_pad (current_element, "src");
+ else
+ srcpad = gst_element_get_static_pad (previous_element, "src");
if (!srcpad) {
g_set_error (error, FS_ERROR, FS_ERROR_CONSTRUCTION,
--
1.5.6.5
More information about the farsight-commits
mailing list