Skip to content

Commit

Permalink
obs-transitions: Mark functions as static
Browse files Browse the repository at this point in the history
These functions were mistakenly not marked as static.  They are not used
outside of their compiled object module files, therefore there's no
reason for them not to be static.
  • Loading branch information
jp9000 committed Feb 21, 2016
1 parent f672818 commit 79b13b7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions plugins/obs-transitions/transition-cut.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ static const char *cut_get_name(void *type_data)
return obs_module_text("CutTransition");
}

void *cut_create(obs_data_t *settings, obs_source_t *source)
static void *cut_create(obs_data_t *settings, obs_source_t *source)
{
struct cut_info *cut;

Expand All @@ -22,13 +22,13 @@ void *cut_create(obs_data_t *settings, obs_source_t *source)
return cut;
}

void cut_destroy(void *data)
static void cut_destroy(void *data)
{
struct cut_info *cut = data;
bfree(cut);
}

void cut_video_render(void *data, gs_effect_t *effect)
static void cut_video_render(void *data, gs_effect_t *effect)
{
struct cut_info *cut = data;
obs_transition_video_render(cut->source, NULL);
Expand All @@ -47,7 +47,7 @@ static float mix_b(void *data, float t)
return t;
}

bool cut_audio_render(void *data, uint64_t *ts_out,
static bool cut_audio_render(void *data, uint64_t *ts_out,
struct obs_source_audio_mix *audio, uint32_t mixers,
size_t channels, size_t sample_rate)
{
Expand Down
8 changes: 4 additions & 4 deletions plugins/obs-transitions/transition-fade.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ static const char *fade_get_name(void *type_data)
return obs_module_text("FadeTransition");
}

void *fade_create(obs_data_t *settings, obs_source_t *source)
static void *fade_create(obs_data_t *settings, obs_source_t *source)
{
struct fade_info *fade;
char *file = obs_module_file("fade_transition.effect");
Expand All @@ -42,7 +42,7 @@ void *fade_create(obs_data_t *settings, obs_source_t *source)
return fade;
}

void fade_destroy(void *data)
static void fade_destroy(void *data)
{
struct fade_info *fade = data;
bfree(fade);
Expand All @@ -61,7 +61,7 @@ static void fade_callback(void *data, gs_texture_t *a, gs_texture_t *b, float t,
gs_draw_sprite(NULL, 0, cx, cy);
}

void fade_video_render(void *data, gs_effect_t *effect)
static void fade_video_render(void *data, gs_effect_t *effect)
{
struct fade_info *fade = data;
obs_transition_video_render(fade->source, fade_callback);
Expand All @@ -80,7 +80,7 @@ static float mix_b(void *data, float t)
return t;
}

bool fade_audio_render(void *data, uint64_t *ts_out,
static bool fade_audio_render(void *data, uint64_t *ts_out,
struct obs_source_audio_mix *audio, uint32_t mixers,
size_t channels, size_t sample_rate)
{
Expand Down

0 comments on commit 79b13b7

Please sign in to comment.