diff options
author | rizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-12-26 23:40:23 +0000 |
---|---|---|
committer | rizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-12-26 23:40:23 +0000 |
commit | 7a2d5539243e10474f40a0b8c6ba5c5a7821dada (patch) | |
tree | 3fbf5f7e2fd426f91030d125007fe22949dfe4ce /channels/console_video.c | |
parent | e7bc9bf26ef05c88b9c56734e9bf73d8b6bcda26 (diff) |
more localizations around sdl_setup
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@94821 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/console_video.c')
-rw-r--r-- | channels/console_video.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/channels/console_video.c b/channels/console_video.c index e13078000..f73fcf3c4 100644 --- a/channels/console_video.c +++ b/channels/console_video.c @@ -1078,13 +1078,9 @@ static void *video_thread(void *arg) unsetenv("DISPLAY"); } } - if (SDL_Init(SDL_INIT_VIDEO)) { - ast_log(LOG_WARNING, "Could not initialize SDL - %s\n", - SDL_GetError()); - /* again not fatal, just we won't display anything */ - } else { - sdl_setup(env); - } + sdl_setup(env); + if (env->gui) + SDL_UpdateRects(env->gui->screen, 1, &env->gui->win[WIN_KEYPAD].rect);// XXX inefficient ast_mutex_init(&env->in.dec_in_lock); if (!ast_strlen_zero(save_display)) setenv("DISPLAY", save_display, 1); @@ -1130,8 +1126,6 @@ static void *video_thread(void *arg) /* sleep for a while */ ast_select(0, NULL, NULL, NULL, &t); - if (env->gui) - SDL_UpdateRects(env->gui->screen, 1, &env->gui->win[WIN_KEYPAD].rect);// XXX inefficient /* * While there is something to display, call the decoder and free * the buffer, possibly enabling the receiver to store new data. |