aboutsummaryrefslogtreecommitdiffstats
path: root/channels/console_video.c
diff options
context:
space:
mode:
authorrizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b>2008-07-02 12:06:48 +0000
committerrizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b>2008-07-02 12:06:48 +0000
commit6d96663d29a18c187c17af46fed162cad9024726 (patch)
tree2a3913747522d52987d5caf8a1a973c4aa0f984d /channels/console_video.c
parentc3d6c0bc6da8fd91a577fda5ae30261911333ee9 (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: http://svn.digium.com/svn/asterisk/trunk@127362 f38db490-d61c-443f-a65b-d21fe96a405b
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 (;;) {