提交 c040b0ff authored 作者: Anthony Minessale's avatar Anthony Minessale 提交者: Michael Jerris

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

上级 517a6d4a
...@@ -359,6 +359,7 @@ struct switch_file_handle { ...@@ -359,6 +359,7 @@ struct switch_file_handle {
switch_event_t *params; switch_event_t *params;
uint32_t cur_channels; uint32_t cur_channels;
uint32_t cur_samplerate; uint32_t cur_samplerate;
char *stream_name;
}; };
/*! \brief Abstract interface to an asr module */ /*! \brief Abstract interface to an asr module */
......
...@@ -108,6 +108,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_perform_file_open(const char *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); switch_copy_string(stream_name, file_path, (rhs + 1) - file_path);
ext = stream_name; ext = stream_name;
file_path = rhs + 3; 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); fh->file_path = switch_core_strdup(fh->memory_pool, file_path);
is_stream = 1; is_stream = 1;
} else { } else {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论