[Scummvm-git-logs] scummvm master -> 8c28b244d9b21337d87fcaaa49c6fc3591785ead
sev-
noreply at scummvm.org
Fri Feb 7 16:16:19 UTC 2025
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
8c28b244d9 VIDEO: QTVR: Fix crash with race condition
Commit: 8c28b244d9b21337d87fcaaa49c6fc3591785ead
https://github.com/scummvm/scummvm/commit/8c28b244d9b21337d87fcaaa49c6fc3591785ead
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2025-02-07T17:16:08+01:00
Commit Message:
VIDEO: QTVR: Fix crash with race condition
Changed paths:
video/qtvr_decoder.cpp
diff --git a/video/qtvr_decoder.cpp b/video/qtvr_decoder.cpp
index 2f209d497b2..aa979d58d0f 100644
--- a/video/qtvr_decoder.cpp
+++ b/video/qtvr_decoder.cpp
@@ -166,7 +166,7 @@ bool QuickTimeDecoder::setFOV(float fov) {
_hfov = _fov * (float)_width / (float)_height;
- PanoTrackHandler *track = (PanoTrackHandler *)_nextVideoTrack;
+ PanoTrackHandler *track = (PanoTrackHandler *)getTrack(_panoTrack->targetTrack);
track->setDirty();
}
@@ -757,7 +757,7 @@ void QuickTimeDecoder::handlePanoMouseButton(bool isDown, int16 x, int16 y, bool
if (!repeat)
return;
- PanoTrackHandler *track = (PanoTrackHandler *)_nextVideoTrack;
+ PanoTrackHandler *track = (PanoTrackHandler *)getTrack(_panoTrack->targetTrack);
// HACK: FIXME: Hard coded for now
const int sensitivity = 5;
More information about the Scummvm-git-logs
mailing list