Commit 0a6b344d authored by Sandrine Avakian's avatar Sandrine Avakian

Update init function to use MSFactory.

parent 5d1a747a
......@@ -313,10 +313,10 @@ MSFilterDesc msopenh264_enc_desc = {
#define MS_PLUGIN_DECLARE(type) extern "C" type
#endif
MS_PLUGIN_DECLARE(void) libmsopenh264_init(void){
MS_PLUGIN_DECLARE(void) libmsopenh264_init(MSFactory *factory){
#ifdef OPENH264_DECODER_ENABLED
ms_filter_register(&msopenh264_dec_desc);
ms_factory_register_filter(factory, &msopenh264_dec_desc);
#endif
ms_filter_register(&msopenh264_enc_desc);
ms_factory_register_filter(factory, &msopenh264_enc_desc);
ms_message("msopenh264-" VERSION " plugin registered.");
}
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