[Android] Revert "Remove no-video flag"
Thomas Guillem
git at videolan.org
Tue Mar 28 14:30:09 CEST 2017
vlc-android | branch: master | Thomas Guillem <thomas at gllm.fr> | Tue Mar 28 11:51:45 2017 +0200| [1b176269d4cdcc49659310e2be57ff280f1ea89d] | committer: Thomas Guillem
Revert "Remove no-video flag"
This reverts commit 5e3982dfe20b44b05b50777eb54c9477d7536936.
Without the "no-video" flag, vlc will try to open the video decoder and the
vout in loop and will cost a lost of CPU.
This commit was a workaround to fix the switch from audio only to video. This
is now fixed in VLC.
> https://code.videolan.org/videolan/vlc-android/commit/1b176269d4cdcc49659310e2be57ff280f1ea89d
---
vlc-android/src/org/videolan/vlc/util/VLCOptions.java | 2 ++
1 file changed, 2 insertions(+)
diff --git a/vlc-android/src/org/videolan/vlc/util/VLCOptions.java b/vlc-android/src/org/videolan/vlc/util/VLCOptions.java
index d021e03..b559616 100644
--- a/vlc-android/src/org/videolan/vlc/util/VLCOptions.java
+++ b/vlc-android/src/org/videolan/vlc/util/VLCOptions.java
@@ -193,6 +193,8 @@ public class VLCOptions {
}
} /* else automatic: use default options */
+ if (noVideo)
+ media.addOption(":no-video");
if (paused)
media.addOption(":start-paused");
}
More information about the Android
mailing list