From: Luigi Rizzo Date: Wed, 2 Jul 2008 12:06:48 +0000 (+0000) Subject: plug another panic when the gui cannot be started. X-Git-Tag: 1.6.2.0-beta1~1815 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8cd40e395092ba50113beef0b0d12a17dc87d8db;p=thirdparty%2Fasterisk.git plug another panic when the gui cannot be started. We can still send video, just don't try to use what is not available. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@127362 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/console_video.c b/channels/console_video.c index aa81215059..c82a9034f2 100644 --- a/channels/console_video.c +++ b/channels/console_video.c @@ -892,9 +892,11 @@ static void *video_thread(void *arg) video_out_init(env); /* Writes intial status of the sources. */ - for (i = 0; i < env->out.device_num; i++) { + if (env->gui) { + for (i = 0; i < env->out.device_num; i++) { print_message(env->gui->thumb_bd_array[i].board, src_msgs[env->out.devices[i].status_index]); + } } for (;;) {