fixed warnings

master
fryshorts 2014-02-15 19:34:37 +01:00
parent c558a7b6fa
commit 09a75c5394
3 changed files with 9 additions and 0 deletions

View File

@ -23,6 +23,7 @@ extern struct obs_source_info pulse_input;
bool obs_module_load(uint32_t obs_version)
{
UNUSED_PARAMETER(obs_version);
obs_register_source(&xshm_input);
obs_register_source(&pulse_input);
return true;

View File

@ -236,6 +236,7 @@ static void *pulse_thread(void *vptr)
static const char *pulse_getname(const char *locale)
{
UNUSED_PARAMETER(locale);
return "Pulse Audio Input";
}
@ -259,6 +260,8 @@ static void pulse_destroy(void *vptr)
static void *pulse_create(obs_data_t settings, obs_source_t source)
{
UNUSED_PARAMETER(settings);
struct pulse_data *data = bmalloc(sizeof(struct pulse_data));
memset(data, 0, sizeof(struct pulse_data));

View File

@ -40,6 +40,7 @@ struct xshm_data {
static const char* xshm_input_getname(const char* locale)
{
UNUSED_PARAMETER(locale);
return "X11 Shared Memory Screen Input";
}
@ -83,6 +84,9 @@ static void xshm_input_destroy(void *vptr)
static void *xshm_input_create(obs_data_t settings, obs_source_t source)
{
UNUSED_PARAMETER(settings);
UNUSED_PARAMETER(source);
// create data structure
struct xshm_data *data = bmalloc(sizeof(struct xshm_data));
memset(data, 0, sizeof(struct xshm_data));
@ -155,6 +159,7 @@ fail:
static void xshm_input_video_tick(void *vptr, float seconds)
{
UNUSED_PARAMETER(seconds);
XSHM_DATA(vptr);
gs_entercontext(obs_graphics());