mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-18 09:32:34 +00:00
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;
|
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,
|
|||||||
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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user