mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-31 07:34:19 +00:00
add buffering to local_stream
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6770 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
436b00b88b
commit
3953014f24
2 files changed
+38
-18
No files matched your search
@@ -95,7 +95,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_file_open(switch_file_handle_t *fh,
|
||||
fh->native_rate = rate;
|
||||
}
|
||||
|
||||
if (fh->samplerate != rate) {
|
||||
if (fh->samplerate && rate && fh->samplerate != rate) {
|
||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "Sample rate doesn't match\n");
|
||||
if ((flags & SWITCH_FILE_FLAG_READ)) {
|
||||
fh->samplerate = rate;
|
||||
|
||||
Reference in new issue
Block a user