aboutsummaryrefslogtreecommitdiffstats
path: root/channels/console_video.c
diff options
context:
space:
mode:
authorrizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b>2007-12-27 17:26:16 +0000
committerrizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b>2007-12-27 17:26:16 +0000
commit115c729a357cf476226c7bde307fa3f55bbaff32 (patch)
tree891f7281f2e31b1443c016ca84933665482e9a60 /channels/console_video.c
parent1c3afe88760ae8a5fa0187f58f0e21922b771ed9 (diff)
more localization of gui stuff
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@94904 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/console_video.c')
-rw-r--r--channels/console_video.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/channels/console_video.c b/channels/console_video.c
index a1af9a454..6e0df5cf2 100644
--- a/channels/console_video.c
+++ b/channels/console_video.c
@@ -1079,10 +1079,18 @@ static void *video_thread(void *arg)
}
}
sdl_setup(env);
- ast_mutex_init(&env->in.dec_in_lock);
if (!ast_strlen_zero(save_display))
setenv("DISPLAY", save_display, 1);
+ /* initialize grab coordinates */
+ env->out.loc_src.x = 0;
+ env->out.loc_src.y = 0;
+
+ /* reset the pointers to the current decoded image */
+ env->in.dec_in_cur = &env->in.dec_in[0];
+ env->in.dec_in_dpy = NULL; /* nothing to display */
+ ast_mutex_init(&env->in.dec_in_lock); /* used to sync decoder and renderer */
+
if (video_open(&env->out)) {
ast_log(LOG_WARNING, "cannot open local video source\n");
} else {