From fe2ec42a452acd94c5de0870d62b3a43865ac885 Mon Sep 17 00:00:00 2001 From: Karl Blomster Date: Sat, 24 Jan 2009 23:00:35 +0000 Subject: [PATCH] Fix a really dumb bug in the caching video provider that caused crashes when seeking in the video. Originally committed to SVN as r2704. --- aegisub/video_provider_cache.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aegisub/video_provider_cache.cpp b/aegisub/video_provider_cache.cpp index 12d887ef1..e499bc9bc 100644 --- a/aegisub/video_provider_cache.cpp +++ b/aegisub/video_provider_cache.cpp @@ -129,8 +129,8 @@ void VideoProviderCache::Cache(int n,const AegiVideoFrame frame) { } // Cache - cache.front().n = n; - cache.front().frame.CopyFrom(frame); + cache.back().n = n; + cache.back().frame.CopyFrom(frame); }