Commit cda13b73 authored by François Grisez's avatar François Grisez

Prevent ms_filter_register() from cashing when no fallback factory has been defined

parent cb1ea6ee
......@@ -27,7 +27,12 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
void ms_filter_register(MSFilterDesc *desc){
ms_factory_register_filter(ms_factory_get_fallback(),desc);
MSFactory *factory = ms_factory_get_fallback();
if(factory) {
ms_factory_register_filter(factory,desc);
} else {
ms_error("ms_filter_register(): registration of '%s' filter has failed: no fallback factory has been defined", desc->name);
}
}
void ms_filter_unregister_all(){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment