[Android] VLCOptions: decrease prefetch read size

Thomas Guillem git at videolan.org
Thu Feb 6 13:23:12 CET 2020


vlc-android | branch: master | Thomas Guillem <thomas at gllm.fr> | Thu Feb  6 11:36:23 2020 +0100| [61af88a43299b76636151e57cef65281bd9a6668] | committer: Thomas Guillem

VLCOptions: decrease prefetch read size

> https://code.videolan.org/videolan/vlc-android/commit/61af88a43299b76636151e57cef65281bd9a6668
---

 .../resources/src/main/java/org/videolan/resources/VLCOptions.kt        | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/application/resources/src/main/java/org/videolan/resources/VLCOptions.kt b/application/resources/src/main/java/org/videolan/resources/VLCOptions.kt
index 9cc48d384..aa304f685 100644
--- a/application/resources/src/main/java/org/videolan/resources/VLCOptions.kt
+++ b/application/resources/src/main/java/org/videolan/resources/VLCOptions.kt
@@ -139,6 +139,8 @@ object VLCOptions {
                 if (!optionsArray.isNullOrEmpty()) Collections.addAll(options, *optionsArray)
             }
             options.add("--smb-force-v1")
+            // decrease the read size of the prefetch module. This fixes smb2 slowness.
+            options.add("--prefetch-read-size=16384")
             return options
         }
 



More information about the Android mailing list