<div dir="ltr"><div dir="ltr">Looks good to me.</div><br><br><div class="gmail_quote"><div dir="ltr">Le lun. 14 mai 2018 à 22:34, Guillaume Charifi <<a href="mailto:guillaume.charifi@sfr.fr">guillaume.charifi@sfr.fr</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Signed-off-by: Guillaume Charifi <<a href="mailto:guillaume.charifi@sfr.fr" target="_blank">guillaume.charifi@sfr.fr</a>><br>
---<br>
 vlc-android/res/values-fr/strings.xml                      | 1 +<br>
 vlc-android/res/values/strings.xml                         | 1 +<br>
 vlc-android/res/xml/preferences_adv.xml                    | 7 +++++++<br>
 .../videolan/vlc/gui/preferences/PreferencesAdvanced.java  | 1 +<br>
 .../vlc/gui/tv/preferences/PreferencesAdvanced.java        | 1 +<br>
 vlc-android/src/org/videolan/vlc/util/VLCOptions.java      | 5 +++++<br>
 6 files changed, 16 insertions(+)<br>
<br>
diff --git a/vlc-android/res/values-fr/strings.xml b/vlc-android/res/values-fr/strings.xml<br>
index 7063f2ac7..c2272781c 100644<br>
--- a/vlc-android/res/values-fr/strings.xml<br>
+++ b/vlc-android/res/values-fr/strings.xml<br>
@@ -393,6 +393,7 @@<br>
     <string name="dump_logcat">Enregistrer journal logcat</string><br>
     <string name="dump_logcat_success">Logcat enregistré avec succès dans le fichier : %1$s !</string><br>
     <string name="dump_logcat_failure">Erreur lors de l\'enregistrement du logcat.</string><br>
+    <string name="custom_libvlc_options">Options personnalisées pour libVLC</string><br>
     <string name="serious_crash">Malheureusement, une importante erreur est intervenue et VLC a dû se fermer.</string><br>
     <string name="help_us_send_log">Aidez-nous à améliorer VLC en renvoyant le rapport de crash suivant :</string><br>
     <string name="restart_vlc">Redémarrer VLC</string><br>
diff --git a/vlc-android/res/values/strings.xml b/vlc-android/res/values/strings.xml<br>
index 2e795e6f8..0370abe26 100644<br>
--- a/vlc-android/res/values/strings.xml<br>
+++ b/vlc-android/res/values/strings.xml<br>
@@ -448,6 +448,7 @@<br>
     <string name="dump_logcat">Dump logcat log</string><br>
     <string name="dump_logcat_success">Logcat successfully dumped to %1$s!</string><br>
     <string name="dump_logcat_failure">Failed to dump logcat.</string><br>
+    <string name="custom_libvlc_options">Custom libVLC options</string><br>
<br>
     <string name="serious_crash">Unfortunately, a serious error has occurred and VLC had to close.</string><br>
     <string name="help_us_send_log">Help us improving VLC by sending the following crash log:</string><br>
diff --git a/vlc-android/res/xml/preferences_adv.xml b/vlc-android/res/xml/preferences_adv.xml<br>
index 7bf3fe683..78b147eb7 100644<br>
--- a/vlc-android/res/xml/preferences_adv.xml<br>
+++ b/vlc-android/res/xml/preferences_adv.xml<br>
@@ -81,6 +81,13 @@<br>
         <PreferenceScreen<br>
             android:key="debug_logs"<br>
             android:title="@string/debug_logs" /><br>
+<br>
+        <EditTextPreference<br>
+            android:defaultValue=""<br>
+            android:inputType="textMultiLine"<br>
+            android:key="custom_libvlc_options"<br>
+            android:singleLine="false"<br>
+            android:title="@string/custom_libvlc_options" /><br>
     </PreferenceCategory><br>
<br>
 </PreferenceScreen><br>
diff --git a/vlc-android/src/org/videolan/vlc/gui/preferences/PreferencesAdvanced.java b/vlc-android/src/org/videolan/vlc/gui/preferences/PreferencesAdvanced.java<br>
index 66aa89e86..aabbcd03a 100644<br>
--- a/vlc-android/src/org/videolan/vlc/gui/preferences/PreferencesAdvanced.java<br>
+++ b/vlc-android/src/org/videolan/vlc/gui/preferences/PreferencesAdvanced.java<br>
@@ -175,6 +175,7 @@ public class PreferencesAdvanced extends BasePreferenceFragment implements Share<br>
                 // No break because need VLCInstance.restart();<br>
             case "opengl":<br>
             case "chroma_format":<br>
+            case "custom_libvlc_options":<br>
             case "deblocking":<br>
             case "enable_frame_skip":<br>
             case "enable_time_stretching_audio":<br>
diff --git a/vlc-android/src/org/videolan/vlc/gui/tv/preferences/PreferencesAdvanced.java b/vlc-android/src/org/videolan/vlc/gui/tv/preferences/PreferencesAdvanced.java<br>
index ee68b1f87..4d35a408d 100644<br>
--- a/vlc-android/src/org/videolan/vlc/gui/tv/preferences/PreferencesAdvanced.java<br>
+++ b/vlc-android/src/org/videolan/vlc/gui/tv/preferences/PreferencesAdvanced.java<br>
@@ -134,6 +134,7 @@ public class PreferencesAdvanced extends BasePreferenceFragment implements Share<br>
                 // No break because need VLCInstance.restart();<br>
             case "opengl":<br>
             case "chroma_format":<br>
+            case "custom_libvlc_options":<br>
             case "deblocking":<br>
             case "enable_frame_skip":<br>
             case "enable_time_stretching_audio":<br>
diff --git a/vlc-android/src/org/videolan/vlc/util/VLCOptions.java b/vlc-android/src/org/videolan/vlc/util/VLCOptions.java<br>
index 93c6092b4..c5fc88d96 100644<br>
--- a/vlc-android/src/org/videolan/vlc/util/VLCOptions.java<br>
+++ b/vlc-android/src/org/videolan/vlc/util/VLCOptions.java<br>
@@ -144,6 +144,11 @@ public class VLCOptions {<br>
         options.add("--sout-chromecast-conversion-quality="+pref.getString("casting_quality", "2"));<br>
         options.add("--sout-keep");<br>
<br>
+        String customOptions[] = pref.getString("custom_libvlc_options", "").split("\\r?\\n", -1);<br>
+<br>
+        for (String opt : customOptions)<br>
+            options.add(opt);<br>
+<br>
         return options;<br>
     }<br>
<br>
-- <br>
2.17.0<br>
<br>
_______________________________________________<br>
Android mailing list<br>
<a href="mailto:Android@videolan.org" target="_blank">Android@videolan.org</a><br>
<a href="https://mailman.videolan.org/listinfo/android" rel="noreferrer" target="_blank">https://mailman.videolan.org/listinfo/android</a><br>
</blockquote></div></div>