Skip to content

Commit

Permalink
Fix compile errors in ddb_vu_meter
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleksiy-Yakovenko committed Jul 15, 2024
1 parent 8d4805d commit ff28a38
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
22 changes: 22 additions & 0 deletions plugins/ddb_vu_meter/compile.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
diff --git a/vumeter.c b/vumeter.c
index 81e7b82..773dabc 100644
--- a/vumeter.c
+++ b/vumeter.c
@@ -808,7 +808,7 @@ vumeter_set_refresh_interval (gpointer user_data, int interval)
}

static void
-vumeter_wavedata_listener (void *ctx, ddb_audio_data_t *data) {
+vumeter_wavedata_listener (void *ctx, const ddb_audio_data_t *data) {
w_vumeter_t *w = ctx;
deadbeef->mutex_lock (w->mutex);
w->channels = MIN (MAX_CHANNELS, data->fmt->channels);
@@ -879,7 +879,7 @@ vumeter_draw_bars (w_vumeter_t *w, cairo_t *cr, int width, int height)

unsigned char *data = cairo_image_surface_get_data (w->surf);
if (!data) {
- return FALSE;
+ return;
}
int stride = cairo_image_surface_get_stride (w->surf);
memset (data, 0, height * stride);
3 changes: 2 additions & 1 deletion plugins/ddb_vu_meter/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
type: "git",
url: "https://github.com/cboxdoerfer/ddb_vu_meter.git",
patches: [
"make.diff"
"make.diff",
"compile.diff"
],
},
make: {
Expand Down

0 comments on commit ff28a38

Please sign in to comment.