[Android] preferences: set YV12 chroma_format for chrome

Thomas Guillem git at videolan.org
Fri Nov 13 15:40:54 CET 2015


vlc-ports/android | branch: master | Thomas Guillem <thomas at gllm.fr> | Fri Nov 13 15:40:41 2015 +0100| [7e1abd513a8d71ee03773e267ea1baa1c9a7f904] | committer: Thomas Guillem

preferences: set YV12 chroma_format for chrome

Thanks Geoffrey for the gradle magic.

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=7e1abd513a8d71ee03773e267ea1baa1c9a7f904
---

 vlc-android/build.gradle                          |    2 +-
 vlc-android/flavors/chrome/res/values/strings.xml |    5 +++++
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/vlc-android/build.gradle b/vlc-android/build.gradle
index 7cc3aee..b5ae824 100644
--- a/vlc-android/build.gradle
+++ b/vlc-android/build.gradle
@@ -196,7 +196,7 @@ android {
     sourceSets.chrome {
         manifest.srcFile 'flavors/chrome/AndroidManifest.xml'
         java.srcDirs = ['flavors/vanilla/src']
-        res.srcDirs = ['flavors/vanilla/res']
+        res.srcDirs = ['flavors/vanilla/res', 'flavors/chrome/res']
     }
 }
 
diff --git a/vlc-android/flavors/chrome/res/values/strings.xml b/vlc-android/flavors/chrome/res/values/strings.xml
new file mode 100644
index 0000000..3cae162
--- /dev/null
+++ b/vlc-android/flavors/chrome/res/values/strings.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources xmlns:tools="http://schemas.android.com/tools">
+
+    <string name="chroma_format_default" translatable="false">YV12</string>
+</resources>



More information about the Android mailing list