[farsight2/master] Add proper error on the wrong type of participant
Olivier Crête
olivier.crete at collabora.co.uk
Tue Dec 23 15:19:08 PST 2008
---
gst/fsrtpconference/fs-rtp-session.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/gst/fsrtpconference/fs-rtp-session.c b/gst/fsrtpconference/fs-rtp-session.c
index f6e5d47..df9cc16 100644
--- a/gst/fsrtpconference/fs-rtp-session.c
+++ b/gst/fsrtpconference/fs-rtp-session.c
@@ -466,7 +466,9 @@ fs_rtp_session_new_stream (FsSession *session, FsParticipant *participant,
FsStream *new_stream = NULL;
if (!FS_IS_RTP_PARTICIPANT (participant)) {
- // *error = g_error_new ();
+ *error = g_error_new (FS_STREAM_ERROR,
+ FS_STREAM_ERROR_INVALID_ARGUMENTS,
+ "You have to provide a participant of type RTP");
return NULL;
}
rtpparticipant = FS_RTP_PARTICIPANT (participant);
--
1.5.6.5
More information about the farsight-commits
mailing list