summaryrefslogtreecommitdiff
path: root/channels/console_video.c
diff options
context:
space:
mode:
authorLuigi Rizzo <rizzo@icir.org>2008-07-02 12:06:48 +0000
committerLuigi Rizzo <rizzo@icir.org>2008-07-02 12:06:48 +0000
commit8cd40e395092ba50113beef0b0d12a17dc87d8db (patch)
tree2a3913747522d52987d5caf8a1a973c4aa0f984d /channels/console_video.c
parentf26e7b97cbe9942e6a1731b58f4faaed9b32facb (diff)
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
Diffstat (limited to 'channels/console_video.c')
-rw-r--r--channels/console_video.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/channels/console_video.c b/channels/console_video.c
index aa8121505..c82a9034f 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 (;;) {