From 8cd40e395092ba50113beef0b0d12a17dc87d8db Mon Sep 17 00:00:00 2001 From: Luigi Rizzo Date: Wed, 2 Jul 2008 12:06:48 +0000 Subject: [PATCH] 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 --- channels/console_video.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/channels/console_video.c b/channels/console_video.c index aa81215..c82a903 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 (;;) { -- 1.7.9.5