Fixed rewind crashing during old movie playback.
This commit is contained in:
@@ -290,10 +290,8 @@ void BackupCVFrame()
|
|||||||
unsigned char *RewindBufferPos = StateBackup + CBackupPos*rewind_state_size;
|
unsigned char *RewindBufferPos = StateBackup + CBackupPos*rewind_state_size;
|
||||||
//printf("Backing up rewind in slot #%u\n", CBackupPos);
|
//printf("Backing up rewind in slot #%u\n", CBackupPos);
|
||||||
copy_state_data(RewindBufferPos, memcpyinc, false);
|
copy_state_data(RewindBufferPos, memcpyinc, false);
|
||||||
if (MovieProcessing)
|
if (MovieProcessing == 1) { zmv_rewind_save(CBackupPos, true); }
|
||||||
{
|
else if (MovieProcessing == 1) { zmv_rewind_save(CBackupPos, false); }
|
||||||
zmv_rewind_save(CBackupPos, MovieProcessing == 1 ? true : false);
|
|
||||||
}
|
|
||||||
RewindTimer = ActualRewindFrames;
|
RewindTimer = ActualRewindFrames;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -302,10 +300,8 @@ void RestoreCVFrame()
|
|||||||
unsigned char *RewindBufferPos = StateBackup + PBackupPos*rewind_state_size;
|
unsigned char *RewindBufferPos = StateBackup + PBackupPos*rewind_state_size;
|
||||||
//printf("Restoring rewind in slot #%u\n", PBackupPos);
|
//printf("Restoring rewind in slot #%u\n", PBackupPos);
|
||||||
copy_state_data(RewindBufferPos, memcpyrinc, true);
|
copy_state_data(RewindBufferPos, memcpyrinc, true);
|
||||||
if (MovieProcessing)
|
if (MovieProcessing == 1) { zmv_rewind_save(CBackupPos, true); }
|
||||||
{
|
else if (MovieProcessing == 1) { zmv_rewind_save(CBackupPos, false); }
|
||||||
zmv_rewind_load(PBackupPos, MovieProcessing == 1 ? true : false);
|
|
||||||
}
|
|
||||||
RewindTimer = ActualRewindFrames;
|
RewindTimer = ActualRewindFrames;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user