mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-11-24 08:57:16 +08:00
修复ext-codec静态库插件未链接问题
This commit is contained in:
@@ -19,15 +19,6 @@
|
||||
#include "Rtmp/RtmpCodec.h"
|
||||
#include "Util/onceToken.h"
|
||||
|
||||
#define REGISTER_STATIC_VAR_INNER(var_name, line) var_name##_##line##__
|
||||
#define REGISTER_STATIC_VAR(var_name, line) REGISTER_STATIC_VAR_INNER(var_name, line)
|
||||
|
||||
#define REGISTER_CODEC(plugin) \
|
||||
extern CodecPlugin plugin; \
|
||||
static toolkit::onceToken REGISTER_STATIC_VAR(s_token, __LINE__) ([]() { \
|
||||
Factory::registerPlugin(plugin); \
|
||||
});
|
||||
|
||||
namespace mediakit {
|
||||
|
||||
struct CodecPlugin {
|
||||
|
||||
Reference in New Issue
Block a user