mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-03 11:11:05 +00:00
chan_oss.c: channel being locked twice and unlocked once
Removed channel lock as it is now being down in ast_channel_alloc git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@404261 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -799,7 +799,6 @@ static struct ast_channel *oss_new(struct chan_oss_pvt *o, char *ext, char *ctx,
|
|||||||
c = ast_channel_alloc(1, state, o->cid_num, o->cid_name, "", ext, ctx, linkedid, 0, "Console/%s", o->device + 5);
|
c = ast_channel_alloc(1, state, o->cid_num, o->cid_name, "", ext, ctx, linkedid, 0, "Console/%s", o->device + 5);
|
||||||
if (c == NULL)
|
if (c == NULL)
|
||||||
return NULL;
|
return NULL;
|
||||||
ast_channel_lock(c);
|
|
||||||
ast_channel_tech_set(c, &oss_tech);
|
ast_channel_tech_set(c, &oss_tech);
|
||||||
if (o->sounddev < 0)
|
if (o->sounddev < 0)
|
||||||
setformat(o, O_RDWR);
|
setformat(o, O_RDWR);
|
||||||
|
Reference in New Issue
Block a user