[Android] VideoPlayerActivity: workaround lack of subtitle events to update icon

Edward Wang git at videolan.org
Sun Jun 16 05:55:52 CEST 2013


vlc-ports/android | branch: master | Edward Wang <edward.c.wang at compdigitec.com> | Sat Jun 15 23:50:58 2013 -0400| [1761848dbb19a8f41056008e72ec96767703fa33] | committer: Edward Wang

VideoPlayerActivity: workaround lack of subtitle events to update icon

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

 .../org/videolan/vlc/gui/video/VideoPlayerActivity.java  |   14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
index 6d09be3..32f0a10 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -464,6 +464,20 @@ public class VideoPlayerActivity extends Activity implements IVideoPlayer {
                 Log.i(TAG, "Adding user-selected subtitle " + file);
                 mLibVLC.addSubtitleTrack(file);
             }
+            /** FIXME remove when #7540 ES are not updated mid-stream
+             *  a.k.a. subtitle events is fixed
+             */
+            mHandler.postDelayed(new Runnable() {
+                @Override
+                public void run() {
+                    setESTrackLists(true);
+
+                    mHandler.postDelayed(new Runnable() {
+                        @Override
+                        public void run() {
+                            setESTrackLists(true);
+                        }}, 1200);
+                }}, 1000);
         }
     }
 



More information about the Android mailing list