[farsight2/master] The ssrc has to be 32bit (lets make sure it is)
Olivier Crête
olivier.crete at collabora.co.uk
Tue Dec 23 15:19:50 PST 2008
---
gst/fsrtpconference/fs-rtp-conference.c | 2 +-
gst/fsrtpconference/fs-rtp-session.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/gst/fsrtpconference/fs-rtp-conference.c b/gst/fsrtpconference/fs-rtp-conference.c
index 77af709..e1271cc 100644
--- a/gst/fsrtpconference/fs-rtp-conference.c
+++ b/gst/fsrtpconference/fs-rtp-conference.c
@@ -249,7 +249,7 @@ fs_rtp_conference_rtpbin_pad_added (GstElement *rtpbin, GstPad *new_pad,
guint session_id, ssrc, pt;
if (sscanf (name, "recv_rtp_src_%u_%u_%u",
- &session_id, &ssrc, &pt) == 3) {
+ &session_id, &ssrc, &pt) == 3 && ssrc <= G_MAXUINT32) {
FsRtpSession *session =
fs_rtp_conference_get_session_by_id (self, session_id);
diff --git a/gst/fsrtpconference/fs-rtp-session.h b/gst/fsrtpconference/fs-rtp-session.h
index 2775227..539cfa1 100644
--- a/gst/fsrtpconference/fs-rtp-session.h
+++ b/gst/fsrtpconference/fs-rtp-session.h
@@ -84,7 +84,7 @@ void fs_rtp_session_link_network_sink (FsRtpSession *session, GstPad *pad);
void fs_rtp_session_new_recv_pad (FsRtpSession *session, GstPad *new_pad,
- guint ssrc, guint pt);
+ guint32 ssrc, guint pt);
G_END_DECLS
--
1.5.6.5
More information about the farsight-commits
mailing list