Commit 00a6dd82 authored by Thomas Guillem's avatar Thomas Guillem

remove unused lock/notify

CID #1270649, #1270650, #1270651, #1270652
parent a51125f6
......@@ -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();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment