[farsight2/master] Add more error checking to send tee creation

Olivier Crête olivier.crete at collabora.co.uk
Tue Dec 23 15:23:03 PST 2008


---
 gst/fsrtpconference/fs-rtp-session.c |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/gst/fsrtpconference/fs-rtp-session.c b/gst/fsrtpconference/fs-rtp-session.c
index af98c1d..dc2ac83 100644
--- a/gst/fsrtpconference/fs-rtp-session.c
+++ b/gst/fsrtpconference/fs-rtp-session.c
@@ -808,7 +808,7 @@ fs_rtp_session_constructed (GObject *object)
   {
     self->priv->construction_error = g_error_new (FS_ERROR,
         FS_ERROR_CONSTRUCTION,
-        "Could not ");
+        "Could not link the send valve to the send tee");
     return;
   }
 
@@ -817,6 +817,13 @@ fs_rtp_session_constructed (GObject *object)
   self->priv->send_tee_media_pad = gst_element_get_request_pad (tee,
       "src%d");
 
+  if (!self->priv->send_tee_discovery_pad || !self->priv->send_tee_media_pad)
+  {
+    self->priv->construction_error = g_error_new (FS_ERROR,
+        FS_ERROR_CONSTRUCTION,
+        "Could not create the send tee request src pads");
+  }
+
   /* Now create the transmitter RTP funnel */
 
   tmp = g_strdup_printf ("recv_rtp_funnel_%u", self->id);
-- 
1.5.6.5




More information about the farsight-commits mailing list