From: Anthony Minessale Date: Mon, 2 Mar 2015 20:09:33 +0000 (-0600) Subject: FS-7514: add m4v X-Git-Tag: v1.6.2~614^2~324 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e13c7bc70eb3ec07f051b52fde96f7365ceeda3b;p=thirdparty%2Ffreeswitch.git FS-7514: add m4v --- diff --git a/src/mod/formats/mod_vlc/mod_vlc.c b/src/mod/formats/mod_vlc/mod_vlc.c index 1a64c642b5..4efcd0d58d 100644 --- a/src/mod/formats/mod_vlc/mod_vlc.c +++ b/src/mod/formats/mod_vlc/mod_vlc.c @@ -2422,13 +2422,15 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_vlc_load) { switch_file_interface_t *file_interface; switch_application_interface_t *app_interface; + int argc = 0; /* connect my internal structure to the blank pointer passed to me */ *module_interface = switch_loadable_module_create_module_interface(pool, modname); - vlc_file_supported_formats[0] = "vlc"; - vlc_file_supported_formats[1] = "mp4"; /* maybe add config for this mod to enable or disable */ - vlc_file_supported_formats[2] = "mov"; /* maybe add config for this mod to enable or disable */ + vlc_file_supported_formats[argc++] = "vlc"; + vlc_file_supported_formats[argc++] = "mp4"; /* maybe add config for this mod to enable or disable these */ + vlc_file_supported_formats[argc++] = "mov"; + vlc_file_supported_formats[argc++] = "mv4"; file_interface = switch_loadable_module_create_interface(*module_interface, SWITCH_FILE_INTERFACE); file_interface->interface_name = modname;