From 1a4c1a5a31e2d2b7c8dc6c6f22100dd385132e05 Mon Sep 17 00:00:00 2001 From: Sjoerd Simons Date: Sun, 8 Mar 2009 20:18:51 +0000 Subject: Only check if the error came from the video_input if it's there Signed-off-by: Sjoerd Simons svn path=/trunk/; revision=2644 --- src/empathy-call-window.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/empathy-call-window.c') diff --git a/src/empathy-call-window.c b/src/empathy-call-window.c index 745fde3c6..cfa65f7d3 100644 --- a/src/empathy-call-window.c +++ b/src/empathy-call-window.c @@ -1049,8 +1049,9 @@ empathy_call_window_bus_message (GstBus *bus, GstMessage *message, g_message ("Element error: %s -- %s\n", error->message, debug); - if (empathy_gst_bin_has_child (GST_BIN (priv->video_input), - GST_ELEMENT (GST_MESSAGE_SRC (message)))) + if (priv->video_input != NULL && + empathy_gst_bin_has_child (GST_BIN (priv->video_input), + GST_ELEMENT (GST_MESSAGE_SRC (message)))) { /* Remove the video input and continue */ empathy_call_window_remove_video_input (self); -- cgit v1.2.3