]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-7503: store stream name so same module can handle mutiple stream interfaces
authorAnthony Minessale <anthm@freeswitch.org>
Tue, 10 Mar 2015 01:25:57 +0000 (20:25 -0500)
committerMichael Jerris <mike@jerris.com>
Thu, 28 May 2015 17:47:10 +0000 (12:47 -0500)
src/include/switch_module_interfaces.h
src/switch_core_file.c

index 711409b4211ef356d650351baee1172defe2f40e..e1199ca9909967f71f8d4d8a0c4ff14cb274650d 100644 (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 */
index 547f643f0c65f0d2ce9427effb53ab3d481237b2..ca29b03bf2d63179bb2b9d91ae0a9f18a0534d56 100644 (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 {