From: Olivier CrĂȘte Date: Sat, 6 Mar 2010 23:37:36 +0000 (-0500) Subject: Verify that the video source could be linked into the pipeline X-Git-Url: https://git.0d.be/?p=empathy.git;a=commitdiff_plain;h=1711b4dffc6c39c948ac441aec2bd81a99c411ff Verify that the video source could be linked into the pipeline --- diff --git a/src/empathy-call-window.c b/src/empathy-call-window.c index f565f1f2..ca7ef6ad 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;