[Android] remove unused lock/notify

Thomas Guillem git at videolan.org
Tue Feb 17 18:07:42 CET 2015


vlc-ports/android | branch: master | Thomas Guillem <thomas at gllm.fr> | Tue Feb 17 18:04:14 2015 +0100| [00a6dd8269c606ca2ab72f3401587d410cf63d6a] | committer: Thomas Guillem

remove unused lock/notify

CID #1270649, #1270650, #1270651, #1270652

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

 .../videolan/vlc/gui/video/VideoPlayerActivity.java    |   16 ----------------
 1 file changed, 16 deletions(-)

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 556f1d2..9553d79 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -1969,11 +1969,6 @@ public class VideoPlayerActivity extends ActionBarActivity implements IVideoPlay
             if(mLibVLC != null) {
                 final Surface newSurface = holder.getSurface();
                 if (mSurface != newSurface) {
-                    if (mSurface != null) {
-                        synchronized (mSurface) {
-                            mSurface.notifyAll();
-                        }
-                    }
                     mSurface = newSurface;
                     Log.d(TAG, "surfaceChanged: " + mSurface);
                     mLibVLC.attachSurface(mSurface, VideoPlayerActivity.this);
@@ -1989,9 +1984,6 @@ public class VideoPlayerActivity extends ActionBarActivity implements IVideoPlay
         public void surfaceDestroyed(SurfaceHolder holder) {
             Log.d(TAG, "surfaceDestroyed");
             if(mLibVLC != null) {
-                synchronized (mSurface) {
-                    mSurface.notifyAll();
-                }
                 mSurface = null;
                 mLibVLC.detachSurface();
             }
@@ -2004,11 +1996,6 @@ public class VideoPlayerActivity extends ActionBarActivity implements IVideoPlay
             if(mLibVLC != null) {
                 final Surface newSurface = holder.getSurface();
                 if (mSubtitleSurface != newSurface) {
-                    if (mSubtitleSurface != null) {
-                        synchronized (mSubtitleSurface) {
-                            mSubtitleSurface.notifyAll();
-                        }
-                    }
                     mSubtitleSurface = newSurface;
                     mLibVLC.attachSubtitlesSurface(mSubtitleSurface);
                 }
@@ -2022,9 +2009,6 @@ public class VideoPlayerActivity extends ActionBarActivity implements IVideoPlay
         @Override
         public void surfaceDestroyed(SurfaceHolder holder) {
             if(mLibVLC != null) {
-                synchronized (mSubtitleSurface) {
-                    mSubtitleSurface.notifyAll();
-                }
                 mSubtitleSurface = null;
                 mLibVLC.detachSubtitlesSurface();
             }



More information about the Android mailing list