[empathy] Verify that the video source could be linked into the pipeline



commit 1711b4dffc6c39c948ac441aec2bd81a99c411ff
Author: Olivier Crête <olivier crete collabora co uk>
Date:   Sat Mar 6 18:37:36 2010 -0500

    Verify that the video source could be linked into the pipeline

 src/empathy-call-window.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/empathy-call-window.c b/src/empathy-call-window.c
index f565f1f..ca7ef6a 100644
--- a/src/empathy-call-window.c
+++ b/src/empathy-call-window.c
@@ -2165,7 +2165,11 @@ empathy_call_window_sink_added_cb (EmpathyCallHandler *handler,
             if (priv->video_tee != NULL)
               {
                 pad = gst_element_get_request_pad (priv->video_tee, "src%d");
-                gst_pad_link (pad, sink);
+                if (GST_PAD_LINK_FAILED (gst_pad_link (pad, sink)))
+                  {
+                    g_warning ("Could not link videp soure input pipeline");
+                    break;
+                  }
               }
 
             retval = TRUE;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]