summaryrefslogtreecommitdiff
path: root/formats/format_g723.c
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2003-06-28 22:50:47 +0000
committerMark Spencer <markster@digium.com>2003-06-28 22:50:47 +0000
commit3b7891887808db51d70c68795c9d6028f89bca58 (patch)
tree902d5085d33fe26d1e4423a993e2443df2c20aa1 /formats/format_g723.c
parent9befc6968493c84e90a25d4b02889c8ca1853cc8 (diff)
Totally redo file formats
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1130 65c4cc65-6c06-0410-ace0-fbb531ad65f3
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;