pitchscreen: Fix unbalanced pcmbuf_set_low_latency when connecting USB
rockbox-gerrit-noreply--- via rockbox-cvs <[email protected]> Sun, 19 Apr 2026 17:57:41 -0400
| Newsgroups | gmane.comp.systems.archos.rockbox.cvs |
|---|---|
| Message-ID | <[email protected]> |
commit 088b3345fbbf5e5a97d84c87acd95a77d2808878 Author: Christian Soffke <[email protected]> Date: Sat Apr 18 14:28:34 2026 +0200 pitchscreen: Fix unbalanced pcmbuf_set_low_latency when connecting USB Change-Id: I73652ef27c24485faefe16c678406d78b0d6e0fd diff --git a/apps/plugins/pitch_screen.c b/apps/plugins/pitch_screen.c index 647b7a17d1..62cb170408 100644 --- a/apps/plugins/pitch_screen.c +++ b/apps/plugins/pitch_screen.c @@ -1109,7 +1109,6 @@ int gui_syncpitchscreen_run(void) rb->yield(); } - //rb->pcmbuf_set_low_latency(false); //pop_current_activity(); /* Clean up */ @@ -1216,6 +1215,7 @@ enum plugin_status plugin_start(const void* parameter) * -s=90 sets speed to 90% if timestrech is enabled * -k=true -k1 enables time stretch -k0 -kf-kn disables */ + enum plugin_status ret = PLUGIN_OK; bool gui = false; rb->pcmbuf_set_low_latency(true); @@ -1275,7 +1275,7 @@ enum plugin_status plugin_start(const void* parameter) } if (gui && gui_syncpitchscreen_run() == 1) - return PLUGIN_USB_CONNECTED; + ret = PLUGIN_USB_CONNECTED; rb->pcmbuf_set_low_latency(false); - return PLUGIN_OK; + return ret; } -- rockbox-cvs mailing list [email protected] https://lists.haxx.se/mailman/listinfo/rockbox-cvs