diff options
author | root <root@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-02-25 05:04:25 +0000 |
---|---|---|
committer | root <root@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-02-25 05:04:25 +0000 |
commit | bd6547a86d45efefc5efb16858a70d4eefadbe3f (patch) | |
tree | 8a65247e7c00d691f0ac1eaa208e649a85778b2c /channel.c | |
parent | 981cafa1b2bc693ff8ba97d7a0191733df85af6f (diff) |
automerge commit
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2-netsec@11088 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channel.c')
-rw-r--r-- | channel.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -1164,7 +1164,12 @@ static void queue_frame_to_spies(struct ast_channel *chan, struct ast_frame *f, trans->last_format = f->subclass; } } - translated_frame = ast_translate(trans->path, f, 0); + if (!(translated_frame = ast_translate(trans->path, f, 0))) { + ast_log(LOG_ERROR, "Translation to %s failed, dropping frame for spies\n", + ast_getformatname(AST_FORMAT_SLINEAR)); + ast_mutex_unlock(&spy->lock); + break; + } } for (last = queue->head; last && last->next; last = last->next); |