[farsight2/master] Have the RTP Session create the stream
Olivier Crête
olivier.crete at collabora.co.uk
Tue Dec 23 15:18:57 PST 2008
---
gst/fsrtpconference/fs-rtp-session.c | 15 ++++++++++++++-
1 files changed, 14 insertions(+), 1 deletions(-)
diff --git a/gst/fsrtpconference/fs-rtp-session.c b/gst/fsrtpconference/fs-rtp-session.c
index 92d5515..71951b9 100644
--- a/gst/fsrtpconference/fs-rtp-session.c
+++ b/gst/fsrtpconference/fs-rtp-session.c
@@ -36,6 +36,8 @@
#include <gst/gst.h>
#include "fs-rtp-session.h"
+#include "fs-rtp-stream.h"
+#include "fs-rtp-participant.h"
/* Signals */
enum
@@ -255,7 +257,18 @@ fs_rtp_session_new_stream (FsSession *session, FsParticipant *participant,
FsStreamDirection direction, gchar *transmitter,
GError **error)
{
- FsStream *new_stream = NULL;
+ FsRtpSession *self = FS_RTP_SESSION (session);
+ FsRtpParticipant *rtpparticipant = NULL;
+ FsRtpStream *new_stream = NULL;
+
+ if (!FS_IS_RTP_PARTICIPANT (participant)) {
+ // *error = g_error_new ();
+ return NULL;
+ }
+ rtpparticipant = FS_RTP_PARTICIPANT (participant);
+
+ new_stream = FS_STREAM_CAST (fs_rtp_stream_new (self, rtpparticipant,
+ direction, NULL));
return new_stream;
}
--
1.5.6.5
More information about the farsight-commits
mailing list