mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-14 05:18:31 +00:00
bug in the bugs
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4109 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
82db5e0112
commit
6f9be6bf5a
2 files changed
+17
-3
No files matched your search
+7
-2
@@ -551,7 +551,10 @@ static void record_callback(switch_media_bug_t *bug, void *user_data, switch_abc
|
||||
case SWITCH_ABC_TYPE_INIT:
|
||||
break;
|
||||
case SWITCH_ABC_TYPE_CLOSE:
|
||||
switch_core_file_close(fh);
|
||||
if (fh) {
|
||||
switch_core_file_close(fh);
|
||||
}
|
||||
break;
|
||||
case SWITCH_ABC_TYPE_READ:
|
||||
if (fh) {
|
||||
switch_size_t len;
|
||||
@@ -767,11 +770,13 @@ static void speech_callback(switch_media_bug_t *bug, void *user_data, switch_abc
|
||||
|
||||
}
|
||||
break;
|
||||
case SWITCH_ABC_TYPE_CLOSE:
|
||||
case SWITCH_ABC_TYPE_CLOSE: {
|
||||
switch_core_asr_close(sth->ah, &flags);
|
||||
switch_mutex_lock(sth->mutex);
|
||||
switch_thread_cond_signal(sth->cond);
|
||||
switch_mutex_unlock(sth->mutex);
|
||||
}
|
||||
break;
|
||||
case SWITCH_ABC_TYPE_READ:
|
||||
if (sth->ah) {
|
||||
if (switch_core_media_bug_read(bug, &frame) == SWITCH_STATUS_SUCCESS) {
|
||||
|
||||
Reference in new issue
Block a user