yolobs-studio/plugins/obs-outputs/obs-outputs.c

42 lines
793 B
C
Raw Normal View History

2016-02-23 23:16:51 +00:00
#include <obs-module.h>
2018-02-19 19:54:37 +00:00
#include "obs-outputs-config.h"
2016-02-23 23:16:51 +00:00
#ifdef _WIN32
#define WIN32_LEAN_AND_MEAN
#include <winsock2.h>
#endif
OBS_DECLARE_MODULE()
OBS_MODULE_USE_DEFAULT_LOCALE("obs-outputs", "en-US")
extern struct obs_output_info rtmp_output_info;
2017-06-29 19:01:10 +00:00
extern struct obs_output_info null_output_info;
2016-02-23 23:16:51 +00:00
extern struct obs_output_info flv_output_info;
2018-02-19 19:54:37 +00:00
#if COMPILE_FTL
extern struct obs_output_info ftl_output_info;
#endif
2016-02-23 23:16:51 +00:00
bool obs_module_load(void)
{
#ifdef _WIN32
WSADATA wsad;
WSAStartup(MAKEWORD(2, 2), &wsad);
#endif
obs_register_output(&rtmp_output_info);
2017-06-29 19:01:10 +00:00
obs_register_output(&null_output_info);
2016-02-23 23:16:51 +00:00
obs_register_output(&flv_output_info);
2018-02-19 19:54:37 +00:00
#if COMPILE_FTL
obs_register_output(&ftl_output_info);
#endif
2016-02-23 23:16:51 +00:00
return true;
}
void obs_module_unload(void)
{
#ifdef _WIN32
WSACleanup();
#endif
}