Skip to content

Commit

Permalink
Fixes bug where toggling off a media source would cause digital glitc…
Browse files Browse the repository at this point in the history
…h to crash. (#35)

Closes #33
  • Loading branch information
FiniteSingularity authored May 26, 2024
1 parent 47827bc commit 5660a3e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/filters/digital-glitch.c
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,9 @@ void digital_glitch_filter_video_tick(retro_effects_filter_data_t *data,
{
digital_glitch_filter_data_t *filter = data->active_filter_data;
filter->local_time += seconds;
if (data->base->width == 0u || data->base->height == 0u) {
return;
}
uint32_t min_h_band_size = filter->min_block_width;
uint32_t max_h_band_size = filter->max_block_width;
uint32_t min_v_band_size = filter->min_block_height;
Expand Down

0 comments on commit 5660a3e

Please sign in to comment.