aboutsummaryrefslogtreecommitdiffstats
path: root/formats/format_g723.c
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2003-06-28 22:50:47 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2003-06-28 22:50:47 +0000
commit3a0233e8edb056a24609732411d306608ffccece (patch)
tree902d5085d33fe26d1e4423a993e2443df2c20aa1 /formats/format_g723.c
parentfd42183b7866425be9ddc6359cb6daea866fd066 (diff)
Totally redo file formats
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1130 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'formats/format_g723.c')
-rwxr-xr-xformats/format_g723.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/formats/format_g723.c b/formats/format_g723.c
index 520aeb7ef..8ce2ec266 100755
--- a/formats/format_g723.c
+++ b/formats/format_g723.c
@@ -35,8 +35,6 @@ struct ast_filestream {
void *reserved[AST_RESERVED_POINTERS];
/* This is what a filestream means to us */
int fd; /* Descriptor */
- u_int32_t lasttimeout; /* Last amount of timeout */
- struct ast_channel *owner;
struct ast_filestream *next;
struct ast_frame *fr; /* Frame representation of buf */
struct timeval orig; /* Original frame time */
@@ -44,7 +42,6 @@ struct ast_filestream {
};
-static struct ast_filestream *glist = NULL;
static pthread_mutex_t g723_lock = AST_MUTEX_INITIALIZER;
static int glistcnt = 0;
@@ -64,10 +61,7 @@ static struct ast_filestream *g723_open(int fd)
free(tmp);
return NULL;
}
- tmp->next = glist;
- glist = tmp;
tmp->fd = fd;
- tmp->owner = NULL;
tmp->fr = (struct ast_frame *)tmp->buf;
tmp->fr->data = tmp->buf + sizeof(struct ast_frame);
tmp->fr->frametype = AST_FRAME_VOICE;
@@ -97,8 +91,6 @@ static struct ast_filestream *g723_rewrite(int fd, char *comment)
free(tmp);
return NULL;
}
- tmp->next = glist;
- glist = tmp;
tmp->fd = fd;
tmp->owner = NULL;
tmp->fr = NULL;