8000 Low batt fix 3405 by lhc70000 · Pull Request #3699 · iina/iina · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Low batt fix 3405 #3699

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 23, 2022
Merged

Low batt fix 3405 #3699

merged 3 commits into from
Apr 23, 2022

Conversation

lhc70000
Copy link
Member
@lhc70000 lhc70000 commented Apr 23, 2022

This PR is from #3479. The code in the previous PR won't compile and I added a missing method call.

It fixes issue #3405.

low-batt and others added 3 commits August 15, 2021 18:24
This commit:
- Changes cachedVideoDurationAndProgress and cachedMetadata to be
  private to the PlaybackInfo class.
- Adds a private DispatchQueue named lockQueue to coordinate thread
  access to the cache
- Adds methods for operating on the cache dictionaries that use lockQueue
  to single thread the operations
- Dedicates the DispatchQueue playlistQueue to background tasks

This corrects a problem where the main thread is blocked waiting for a
background task to finish.
@lhc70000 lhc70000 merged commit e691135 into develop Apr 23, 2022
@lhc70000 lhc70000 deleted the low-batt-fix-3405 branch April 24, 2022 02:55
lhc70000 added a commit that referenced this pull request Apr 24, 2022
* Fix deadlock in PlaylistViewController, #3405

This commit:
- Changes cachedVideoDurationAndProgress and cachedMetadata to be
  private to the PlaybackInfo class.
- Adds a private DispatchQueue named lockQueue to coordinate thread
  access to the cache
- Adds methods for operating on the cache dictionaries that use lockQueue
  to single thread the operations
- Dedicates the DispatchQueue playlistQueue to background tasks

This corrects a problem where the main thread is blocked waiting for a
background task to finish.

* Add missing getCachedVideoDurationAndProgress

Co-authored-by: low-batt <86170219+low-batt@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0