Skip to content
Snippets Groups Projects

qt: recover main playlist if application crashes or abruptly closes

Merged Fatih Uzunoğlu requested to merge fuzun/vlc:qt/restoreplaylistoncrash into master

Akin to the feature text editors have been employing for a while.

The way it works is basically saving the playlist into a temporary file every 5 minutes. This is only done if there have been changes in the playlist, and there is no I/O if not. Probing the change is not done by comparing the temporary file and the playlist, but rather getting change signal from the model itself.

So, read is done asynchronously if there is a recovery file on Qt interface startup and write is done asynchronously if there have been changes in the playlist model.

Request review @chub.

Edited by Fatih Uzunoğlu

Merge request reports

Merge request pipeline #525580 passed

Merge request pipeline passed for e009cc4d

Test coverage 18.78% (-0.03%) from 1 job

Merged by François CartegnieFrançois Cartegnie 4 months ago (Oct 21, 2024 4:33am UTC)

Loading

Pipeline #525910 failed

Pipeline failed for e009cc4d on master

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading