Browse Source

VLCVideoUIView: invalidate later

invalidate is supposed to release the target.
Alexandre Janniaux 4 years ago
parent
commit
cb54aafa07
  1. 3
      modules/video_output/apple/VLCVideoUIView.m

3
modules/video_output/apple/VLCVideoUIView.m

@ -293,6 +293,7 @@
dispatch_sync(_eventq, ^{
/* CADisplayLink will hold the send after creation, which is this view
* so delete it before. */
[_displayLink invalidate];
_displayLink = nil;
/* The UIView must not be attached before releasing. Disable() is doing
@ -335,7 +336,7 @@
- (void)disable
{
[_displayLink invalidate];
[_displayLink removeFromRunLoop:[NSRunLoop mainRunLoop] forMode:NSDefaultRunLoopMode];
_last_ca_target_ts = VLC_TICK_INVALID;
dispatch_async(dispatch_get_main_queue(), ^{

Loading…
Cancel
Save