Commit 5cac306e authored by Thomas Guillem's avatar Thomas Guillem

LibVLC: AWindow: change surface callback calling order

parent 5cb6e7d9
......@@ -338,10 +338,10 @@ public class AWindow implements IVLCVout {
surfaceHelper.release();
mSurfaceHelpers[id] = null;
}
if (mSurfaceCallback != null)
mSurfaceCallback.onSurfacesDestroyed(this);
for (IVLCVout.Callback cb : mIVLCVoutCallbacks)
cb.onSurfacesDestroyed(this);
if (mSurfaceCallback != null)
mSurfaceCallback.onSurfacesDestroyed(this);
}
@Override
......@@ -362,10 +362,10 @@ public class AWindow implements IVLCVout {
if (videoHelper.isReady() && (subtitlesHelper == null || subtitlesHelper.isReady())) {
mSurfacesState.set(SURFACE_STATE_READY);
if (mSurfaceCallback != null)
mSurfaceCallback.onSurfacesCreated(this);
for (IVLCVout.Callback cb : mIVLCVoutCallbacks)
cb.onSurfacesCreated(this);
if (mSurfaceCallback != null)
mSurfaceCallback.onSurfacesCreated(this);
}
}
......
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