[Android] VLCOptions: decrease prefetch read size

Thomas Guillem git at videolan.org
Thu Feb 6 13:35:33 CET 2020


vlc-android | branch: 3.2.x | Thomas Guillem <thomas at gllm.fr> | Thu Feb  6 13:35:18 2020 +0100| [df1d69a4d149e3abf22919cc2adbbec0bf0de290] | committer: Geoffrey Métais

VLCOptions: decrease prefetch read size

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

 vlc-android/src/org/videolan/vlc/util/VLCOptions.kt | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/vlc-android/src/org/videolan/vlc/util/VLCOptions.kt b/vlc-android/src/org/videolan/vlc/util/VLCOptions.kt
index 6d471613f..dbcf7386c 100644
--- a/vlc-android/src/org/videolan/vlc/util/VLCOptions.kt
+++ b/vlc-android/src/org/videolan/vlc/util/VLCOptions.kt
@@ -140,6 +140,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