[farsight2/master] Check is there is a valid particpant
Olivier Crête
olivier.crete at collabora.co.uk
Tue Dec 23 15:26:37 PST 2008
---
transmitters/nice/fs-nice-stream-transmitter.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/transmitters/nice/fs-nice-stream-transmitter.c b/transmitters/nice/fs-nice-stream-transmitter.c
index 5190595..90186bd 100644
--- a/transmitters/nice/fs-nice-stream-transmitter.c
+++ b/transmitters/nice/fs-nice-stream-transmitter.c
@@ -1427,6 +1427,13 @@ fs_nice_stream_transmitter_newv (FsNiceTransmitter *transmitter,
{
FsNiceStreamTransmitter *streamtransmitter = NULL;
+ if (!participant || !FS_IS_PARTICIPANT (participant))
+ {
+ g_set_error (error, FS_ERROR, FS_ERROR_INVALID_ARGUMENTS,
+ "You need a valid participant");
+ return NULL;
+ }
+
streamtransmitter = g_object_newv (FS_TYPE_NICE_STREAM_TRANSMITTER,
n_parameters, parameters);
--
1.5.6.5
More information about the farsight-commits
mailing list