FS-7503: store stream name so same module can handle mutiple stream interfaces
This commit is contained in:
parent
517a6d4ab7
commit
c040b0ff0d
|
@ -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 */
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue