summaryrefslogtreecommitdiff
path: root/apps/plugins/pitch_screen.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/pitch_screen.c')
-rw-r--r--apps/plugins/pitch_screen.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/plugins/pitch_screen.c b/apps/plugins/pitch_screen.c
index e24e0240a2..4af34fed3b 100644
--- a/apps/plugins/pitch_screen.c
+++ b/apps/plugins/pitch_screen.c
@@ -1120,8 +1120,9 @@ int gui_syncpitchscreen_run(void)
1120 return 0; 1120 return 0;
1121} 1121}
1122 1122
1123static int arg_callback(char argchar, const char **parameter) 1123static int arg_callback(char argchar, const char **parameter, void *userdata)
1124{ 1124{
1125 (void)userdata;
1125 int ret; 1126 int ret;
1126 long num, dec; 1127 long num, dec;
1127 bool bret; 1128 bool bret;
@@ -1232,7 +1233,7 @@ enum plugin_status plugin_start(const void* parameter)
1232 struct pvars cur; 1233 struct pvars cur;
1233 fill_pitchvars(&cur); 1234 fill_pitchvars(&cur);
1234 fill_pitchvars(&pitch_vars); 1235 fill_pitchvars(&pitch_vars);
1235 argparse((const char*) parameter, -1, &arg_callback); 1236 argparse((const char*) parameter, -1, NULL, &arg_callback);
1236 if (pitch_vars.pitch != cur.pitch) 1237 if (pitch_vars.pitch != cur.pitch)
1237 { 1238 {
1238 rb->sound_set_pitch(pitch_vars.pitch); 1239 rb->sound_set_pitch(pitch_vars.pitch);