BOUNTY-9 (regression)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14895 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
dcfe0f5743
commit
9fb893702b
|
@ -148,15 +148,13 @@ SWITCH_DECLARE(switch_status_t) switch_core_perform_file_open(const char *file,
|
||||||
switch_goto_status(status, end);
|
switch_goto_status(status, end);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((status = switch_file_exists(file_path, fh->memory_pool)) != SWITCH_STATUS_SUCCESS) {
|
if (!strstr(file_path, SWITCH_URL_SEPARATOR) && (status = switch_file_exists(file_path, fh->memory_pool)) != SWITCH_STATUS_SUCCESS) {
|
||||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "File [%s] not created!\n", fh->spool_path);
|
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "File [%s] not created!\n", file_path);
|
||||||
fh->file_interface->file_close(fh);
|
fh->file_interface->file_close(fh);
|
||||||
UNPROTECT_INTERFACE(fh->file_interface);
|
UNPROTECT_INTERFACE(fh->file_interface);
|
||||||
switch_goto_status(status, end);
|
switch_goto_status(status, end);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if ((flags & SWITCH_FILE_FLAG_READ)) {
|
if ((flags & SWITCH_FILE_FLAG_READ)) {
|
||||||
fh->native_rate = fh->samplerate;
|
fh->native_rate = fh->samplerate;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue