win-dshow: Move module loading to separate file
The main module code was originally all packed in to the win-dshow.cpp file, which isn't exactly ideal or clean if one wants to add other things to the module as a whole.
This commit is contained in:
parent
67587fbced
commit
bbff0eeeb9
3 changed files with 14 additions and 6 deletions
12
plugins/win-dshow/dshow-plugin.cpp
Normal file
12
plugins/win-dshow/dshow-plugin.cpp
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
#include <obs-module.h>
|
||||
|
||||
OBS_DECLARE_MODULE()
|
||||
OBS_MODULE_USE_DEFAULT_LOCALE("win-dshow", "en-US")
|
||||
|
||||
extern void RegisterDShowSource();
|
||||
|
||||
bool obs_module_load(void)
|
||||
{
|
||||
RegisterDShowSource();
|
||||
return true;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue