Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLC
Manage
Activity
Members
Labels
Plan
Issues
4k
Issue boards
Milestones
Code
Merge requests
429
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VideoLAN
VLC
Commits
27489f99
Commit
27489f99
authored
3 years ago
by
Alexandre Janniaux
Committed by
Jean-Baptiste Kempf
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
avcapture: fix locking for pts
parent
3e9507cd
No related branches found
Branches containing commit
No related tags found
1 merge request
!648
avcapture: rework to modernize code and fix playback issues
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/access/avcapture.m
+4
-5
4 additions, 5 deletions
modules/access/avcapture.m
with
4 additions
and
5 deletions
modules/access/avcapture.m
+
4
−
5
View file @
27489f99
...
...
@@ -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
currentP
ts
;
return
p
ts
;
}
-
(
void
)
captureOutput
:(
AVCaptureOutput
*
)
captureOutput
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment