mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-13 00:04:53 +00:00
more localization of gui stuff
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@94904 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user