[Android] Add video flag when need
Geoffrey Métais
git at videolan.org
Fri Nov 27 17:07:28 CET 2015
vlc-ports/android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Nov 26 15:32:55 2015 +0100| [b7484abb46b7b524b11ad8264d15aee1a578edc7] | committer: Geoffrey Métais
Add video flag when need
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=b7484abb46b7b524b11ad8264d15aee1a578edc7
---
vlc-android/src/org/videolan/vlc/PlaybackService.java | 2 ++
1 file changed, 2 insertions(+)
diff --git a/vlc-android/src/org/videolan/vlc/PlaybackService.java b/vlc-android/src/org/videolan/vlc/PlaybackService.java
index c857b70..455f6e9 100644
--- a/vlc-android/src/org/videolan/vlc/PlaybackService.java
+++ b/vlc-android/src/org/videolan/vlc/PlaybackService.java
@@ -1595,6 +1595,8 @@ public class PlaybackService extends Service implements IVLCVout.Callback {
final MediaWrapper mw = mMediaList.getMedia(index);
if (mw == null)
return;
+ if (mw.getType() == MediaWrapper.TYPE_VIDEO && isVideoPlaying())
+ mw.addFlags(MediaWrapper.MEDIA_VIDEO);
/* Pausable and seekable are true by default */
mParsed = false;
More information about the Android
mailing list