From 1711b4dffc6c39c948ac441aec2bd81a99c411ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olivier=20Cr=C3=AAte?= Date: Sat, 6 Mar 2010 18:37:36 -0500 Subject: Verify that the video source could be linked into the pipeline --- src/empathy-call-window.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/empathy-call-window.c b/src/empathy-call-window.c index f565f1f2d..ca7ef6ad1 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; -- cgit v1.2.3