Skip to content
Snippets Groups Projects
Commit 5cac306e authored by Thomas Guillem's avatar Thomas Guillem
Browse files

LibVLC: AWindow: change surface callback calling order

parent 5cb6e7d9
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment