1
0
mirror of https://github.com/signalwire/freeswitch.git synced 2025-04-15 00:22:35 +00:00

If libvlc fails to initialize, then the module should fail to load.

This commit is contained in:
William King 2014-01-22 13:55:13 -08:00
parent 4b07ee5183
commit c3711b81c9

@ -398,6 +398,11 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_vlc_load)
/* load the vlc engine. */
read_inst = libvlc_new(1, &vlc_args);
if ( ! read_inst ) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "FAILED TO LOAD\n");
return SWITCH_STATUS_GENERR;
}
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Initialized VLC instance\n");
/* indicate that the module should continue to be loaded */