plug another panic when the gui cannot be started.
authorLuigi Rizzo <rizzo@icir.org>
Wed, 2 Jul 2008 12:06:48 +0000 (12:06 +0000)
committerLuigi Rizzo <rizzo@icir.org>
Wed, 2 Jul 2008 12:06:48 +0000 (12:06 +0000)
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

index aa81215..c82a903 100644 (file)
@@ -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 (;;) {