Commit 5ba043ab authored by François Grisez's avatar François Grisez

Add a parameter to disable openh264 decoder while building

parent 9c177be0
......@@ -14,6 +14,10 @@ LOCAL_C_INCLUDES += \
LOCAL_CFLAGS += -DVERSION=\"android\"
ifeq ($(ENABLE_OPENH264_DECODER), 1)
LOCAL_CFLAGS += -DOPENH264_DECODER_ENABLED
endif
include $(BUILD_STATIC_LIBRARY)
......@@ -4,6 +4,8 @@ plugins_LTLIBRARIES=libmsopenh264.la
libmsopenh264_la_SOURCES=msopenh264.cpp msopenh264dec.cpp msopenh264enc.cpp
libmsopenh264_la_CFLAGS=-DOPENH264_DECODER_ENABLED
libmsopenh264_la_LIBADD=$(MEDIASTREAMER_LIBS) $(OPENH264_LIBS)
libmsopenh264_la_LDFLAGS=-module -no-undefined
......
......@@ -337,7 +337,9 @@ MSFilterDesc msopenh264_enc_desc = {
#endif
MS_PLUGIN_DECLARE(void) libmsopenh264_init(void){
#ifdef OPENH264_DECODER_ENABLED
ms_filter_register(&msopenh264_dec_desc);
#endif
ms_filter_register(&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