generated from obsproject/obs-plugintemplate
-
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
40 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#include "url-source.h" | ||
|
||
struct obs_source_info url_source = {.id = "url_source", | ||
.type = OBS_SOURCE_TYPE_INPUT, | ||
.output_flags = OBS_SOURCE_ASYNC_VIDEO, | ||
.get_name = url_source_name, | ||
.create = url_source_create, | ||
.destroy = url_source_destroy, | ||
.get_defaults = url_source_defaults, | ||
.get_properties = url_source_properties, | ||
.update = url_source_update}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#ifndef URL_SOURCE_H | ||
#define URL_SOURCE_H | ||
|
||
#include <obs-module.h> | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
obs_properties_t *url_source_properties(void *data); | ||
void url_source_defaults(obs_data_t *s); | ||
void *url_source_create(obs_data_t *settings, obs_source_t *source); | ||
void url_source_destroy(void *data); | ||
void url_source_update(void *data, obs_data_t *settings); | ||
const char *url_source_name(void *unused); | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
|
||
#endif /* URL_SOURCE_H */ |