[Android] VLCOptions: remove useless null check
Thomas Guillem
git at videolan.org
Thu Dec 22 20:50:21 CET 2016
vlc-android | branch: master | Thomas Guillem <thomas at gllm.fr> | Thu Dec 22 19:44:29 2016 +0100| [aa70f067faa052885a7fd2989fdbfdbf0b9495c7] | committer: Thomas Guillem
VLCOptions: remove useless null check
> https://code.videolan.org/videolan/vlc-android/commit/aa70f067faa052885a7fd2989fdbfdbf0b9495c7
---
vlc-android/src/org/videolan/vlc/util/VLCOptions.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/vlc-android/src/org/videolan/vlc/util/VLCOptions.java b/vlc-android/src/org/videolan/vlc/util/VLCOptions.java
index 454e4b8..0436b47 100644
--- a/vlc-android/src/org/videolan/vlc/util/VLCOptions.java
+++ b/vlc-android/src/org/videolan/vlc/util/VLCOptions.java
@@ -62,7 +62,7 @@ public class VLCOptions {
final String subtitlesEncoding = pref.getString("subtitle_text_encoding", "");
final boolean frameSkip = pref.getBoolean("enable_frame_skip", false);
String chroma = pref.getString("chroma_format", VLCApplication.getAppResources().getString(R.string.chroma_format_default));
- if (chroma != null && chroma.equals("YV12"))
+ if (chroma.equals("YV12"))
chroma = "";
final boolean verboseMode = pref.getBoolean("enable_verbose_mode", true);
@@ -96,7 +96,7 @@ public class VLCOptions {
if (networkCaching > 0)
options.add("--network-caching=" + networkCaching);
options.add("--android-display-chroma");
- options.add(chroma != null ? chroma : "RV32");
+ options.add(chroma);
options.add("--audio-resampler");
options.add(getResampler());
More information about the Android
mailing list