[Android] [PATCH 06/10] Add video flag when need

Geoffrey Métais geoffrey.metais at gmail.com
Fri Nov 27 13:25:01 CET 2015


---
 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;
-- 
2.5.0



More information about the Android mailing list