summaryrefslogtreecommitdiff
path: root/apps/app_meetme.c
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2004-05-30 20:24:48 +0000
committerMark Spencer <markster@digium.com>2004-05-30 20:24:48 +0000
commit0f5ed60d517c627f844b206ff76d9c67ba990dd8 (patch)
treeefa8097712ebfb57060089885c15fc203e605e8a /apps/app_meetme.c
parent5ef2ef8a1d858189412ef41c906654eeb875a5eb (diff)
Minor RTP video fixes, be more careful about closing fd's in meetme (bug #1743)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3111 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps/app_meetme.c')
-rwxr-xr-xapps/app_meetme.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/app_meetme.c b/apps/app_meetme.c
index dd11efbda..f9b16ce58 100755
--- a/apps/app_meetme.c
+++ b/apps/app_meetme.c
@@ -465,7 +465,8 @@ static int conf_run(struct ast_channel *chan, struct ast_conference *conf, int c
int firstpass = 0;
int ret = -1;
int x;
- int menu_active = 0;
+ int menu_active = 0;
+ int using_pseudo = 0;
struct ast_app *app;
char *agifile;
@@ -561,6 +562,7 @@ zapretry:
ast_log(LOG_WARNING, "Unable to open pseudo channel: %s\n", strerror(errno));
goto outrun;
}
+ using_pseudo = 1;
/* Make non-blocking */
flags = fcntl(fd, F_GETFL);
if (flags < 0) {
@@ -885,7 +887,7 @@ zapretry:
}
}
}
- if (fd != chan->fds[0])
+ if (using_pseudo)
close(fd);
else {
/* Take out of conference */