mirror of
https://github.com/Rockbox/rockbox.git
synced 2026-05-12 11:43:16 -04:00
pitchscreen: Fix unbalanced pcmbuf_set_low_latency when connecting USB
Change-Id: I73652ef27c24485faefe16c678406d78b0d6e0fd
This commit is contained in:
parent
9000614224
commit
088b3345fb
1 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue