Commit 215f9acf authored by Nicolas Pomepuy's avatar Nicolas Pomepuy
Browse files

Fix prefer SMB 1 argument not set

parent f1648657
Pipeline #48052 passed with stage
in 2 minutes and 55 seconds
......@@ -131,7 +131,8 @@ object VLCOptions {
val optionsArray = customOptions.split("\\r?\\n".toRegex()).toTypedArray()
if (!optionsArray.isNullOrEmpty()) Collections.addAll(options, *optionsArray)
}
options.add("--smb-force-v1")
if (pref.getBoolean("prefer_smbv1", true))
options.add("--smb-force-v1")
if (!Settings.showTvUi) {
//Ambisonic
val hstfDir = context.getDir("vlc", Context.MODE_PRIVATE)
......
......@@ -164,10 +164,14 @@ class PreferencesAdvanced : BasePreferenceFragment(), SharedPreferences.OnShared
}
restartLibVLC()
}
"opengl", "chroma_format", "deblocking", "enable_frame_skip", "enable_time_stretching_audio", "enable_verbose_mode", "prefer_smbv1" -> {
"opengl", "chroma_format", "deblocking", "enable_frame_skip", "enable_time_stretching_audio", "enable_verbose_mode" -> {
VLCInstance.restart()
(activity as? PreferencesActivity)?.restartMediaPlayer()
}
"prefer_smbv1" -> {
VLCInstance.restart()
UiTools.restartDialog(requireActivity())
}
}
}
fun restartLibVLC() {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment