[farsight2/master] Recognize the first/last elements of the pipeline list in a more correct/obvious way
Olivier Crête
olivier.crete at collabora.co.uk
Tue Dec 23 15:20:16 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 e3d6bf3..23ea913 100644
--- a/gst/fsrtpconference/fs-rtp-session.c
+++ b/gst/fsrtpconference/fs-rtp-session.c
@@ -1666,13 +1666,13 @@ _create_codec_bin (CodecBlueprint *blueprint, const FsCodec *codec,
/* Lets create the ghost pads on the codec bin */
- if (g_list_first (pipeline_factory) == walk)
+ if (g_list_previous (walk) == NULL)
/* if its the first element of the codec bin */
if (!_create_ghost_pad (current_element,
is_send ? "src" : "sink", codec_bin, error))
goto error;
- if (g_list_next (g_list_first (pipeline_factory)) == NULL)
+ if (g_list_next (walk) == NULL)
/* if its the last element of the codec bin */
if (!_create_ghost_pad (current_element,
is_send ? "sink" : "src" , codec_bin, error))
--
1.5.6.5
More information about the farsight-commits
mailing list