[farsight2/master] Test for errors creating libnice stream
Olivier Crête
olivier.crete at collabora.co.uk
Tue Dec 23 15:26:16 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 4b17f98..18f5203 100644
--- a/transmitters/nice/fs-nice-stream-transmitter.c
+++ b/transmitters/nice/fs-nice-stream-transmitter.c
@@ -790,6 +790,13 @@ fs_nice_stream_transmitter_gather_local_candidates (
self->priv->transmitter->agent,
self->priv->transmitter->components);
+ if (self->priv->stream_id == 0)
+ {
+ g_set_error (error, FS_ERROR, FS_ERROR_CONSTRUCTION,
+ "Could not create libnice stream");
+ return FALSE;
+ }
+
self->priv->gststream = fs_nice_transmitter_add_gst_stream (
self->priv->transmitter,
self->priv->stream_id,
--
1.5.6.5
More information about the farsight-commits
mailing list