summaryrefslogtreecommitdiff
path: root/apps/plugins/pictureflow/pictureflow.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/pictureflow/pictureflow.c')
-rw-r--r--apps/plugins/pictureflow/pictureflow.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/plugins/pictureflow/pictureflow.c b/apps/plugins/pictureflow/pictureflow.c
index 0e337ef63c..ef40ea6e28 100644
--- a/apps/plugins/pictureflow/pictureflow.c
+++ b/apps/plugins/pictureflow/pictureflow.c
@@ -2721,6 +2721,11 @@ enum plugin_status plugin_start(const void *parameter)
2721 buf = rb->plugin_get_buffer(&buf_size); 2721 buf = rb->plugin_get_buffer(&buf_size);
2722#else 2722#else
2723 buf = rb->plugin_get_audio_buffer(&buf_size); 2723 buf = rb->plugin_get_audio_buffer(&buf_size);
2724 if ((uintptr_t)buf < (uintptr_t)plugin_start_addr)
2725 {
2726 uint32_t tmp_size = (uintptr_t)plugin_start_addr - (uintptr_t)buf;
2727 buf_size = MIN(buf_size, tmp_size);
2728 }
2724#endif 2729#endif
2725 ret = main(); 2730 ret = main();
2726#ifdef HAVE_ADJUSTABLE_CPU_FREQ 2731#ifdef HAVE_ADJUSTABLE_CPU_FREQ