implement the 'freeze' function for incoming frames;

fix a bug which caused a crash when a videodevice was
specified after startgui=1 in the config file. This also
involves a slightly different method to determine if the
gui is active or not.



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@126572 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Luigi Rizzo
2008-06-30 15:45:15 +00:00
parent f55143f0a6
commit ff8ad6b497
4 changed files with 56 additions and 23 deletions

View File

@@ -1387,6 +1387,11 @@ static struct chan_oss_pvt *store_config(struct ast_config *cfg, char *ctg)
system(cmd);
ast_free(cmd);
}
/* if the config file requested to start the GUI, do it */
if (get_gui_startup(o->env))
console_video_start(o->env, NULL);
if (o == &oss_default) /* we are done with the default */
return NULL;