diff options
author | Luigi Rizzo <rizzo@icir.org> | 2008-06-30 15:45:15 +0000 |
---|---|---|
committer | Luigi Rizzo <rizzo@icir.org> | 2008-06-30 15:45:15 +0000 |
commit | ff8ad6b4970c0ce68d1da1cc683e73b2ffdbefe3 (patch) | |
tree | 5615b8941ba0f6e898b4bbe5b41f9826f5ef10a2 /channels/chan_oss.c | |
parent | f55143f0a6689df3dac5d25ab6f05938b490f028 (diff) |
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
Diffstat (limited to 'channels/chan_oss.c')
-rw-r--r-- | channels/chan_oss.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/channels/chan_oss.c b/channels/chan_oss.c index e665eb2e9..a3908a504 100644 --- a/channels/chan_oss.c +++ b/channels/chan_oss.c @@ -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; |