FS-7503: store stream name so same module can handle mutiple stream interfaces

This commit is contained in:
Anthony Minessale 2015-03-09 20:25:57 -05:00 committed by Michael Jerris
parent 517a6d4ab7
commit c040b0ff0d
2 changed files with 2 additions and 0 deletions

View File

@ -359,6 +359,7 @@ struct switch_file_handle {
switch_event_t *params;
uint32_t cur_channels;
uint32_t cur_samplerate;
char *stream_name;
};
/*! \brief Abstract interface to an asr module */

View File

@ -108,6 +108,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_perform_file_open(const char *file,
switch_copy_string(stream_name, file_path, (rhs + 1) - file_path);
ext = stream_name;
file_path = rhs + 3;
fh->stream_name = switch_core_strdup(fh->memory_pool, stream_name);
fh->file_path = switch_core_strdup(fh->memory_pool, file_path);
is_stream = 1;
} else {