diff options
author | Zaggy1024 <zaggy1024@gmail.com> | 2022-11-09 06:52:37 -0600 |
---|---|---|
committer | Ali Mohammad Pur <Ali.mpfard@gmail.com> | 2022-11-10 12:32:55 +0330 |
commit | 18a6a1dd1029f7da200680ff3f6b7d8e134ec6a3 (patch) | |
tree | 0e23288158bf9066abd7a0c92a5ee8249b0832d3 /Meta/lint-clang-format.sh | |
parent | a2a4ad3b9dfa77cce8d27872631ad3928f918306 (diff) | |
download | serenity-18a6a1dd1029f7da200680ff3f6b7d8e134ec6a3.zip |
LibVideo: Handle corrupted video errors without spamming dialogs
No longer will the video player explode with error dialogs that then
lock the user out of closing them.
To avoid issues where the playback state becomes invalid when an error
occurs, I've made all decoder errors pass through the frame queue.
This way, when a video is corrupted, there should be no chance that the
playback state becomes invalid due to setting the state to Corrupted
in the event handler while a presentation event is still pending.
Or at least I think that was what caused some issues I was seeing :^)
This system should be a lot more robust if any future errors need to be
handled.
Diffstat (limited to 'Meta/lint-clang-format.sh')
0 files changed, 0 insertions, 0 deletions