Skip to content
Snippets Groups Projects
Commit 27489f99 authored by Alexandre Janniaux's avatar Alexandre Janniaux Committed by Jean-Baptiste Kempf
Browse files

avcapture: fix locking for pts

parent 3e9507cd
No related branches found
No related tags found
1 merge request!648avcapture: rework to modernize code and fix playback issues
......@@ -161,19 +161,18 @@ vlc_module_end ()
}
}
-(vlc_tick_t)currentPts
- (vlc_tick_t)currentPts
{
vlc_tick_t pts;
if ( !currentImageBuffer || currentPts == previousPts )
return 0;
@synchronized (self)
{
if ( !currentImageBuffer || currentPts == previousPts )
return 0;
pts = previousPts = currentPts;
}
return currentPts;
return pts;
}
- (void)captureOutput:(AVCaptureOutput *)captureOutput
......
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