From b1eb77e1b9f0e10648420f2b51cc3e20e93320b2 Mon Sep 17 00:00:00 2001
From: Rodrigo Braz Monteiro <zeratul@cellosoft.com>
Date: Thu, 6 Mar 2008 19:21:18 +0000
Subject: [PATCH] Ops, a few missing files from provider change.

Originally committed to SVN as r1920.
---
 aegisub/subs_preview.cpp                   | 2 +-
 aegisub/subtitle_format_dvd.cpp            | 2 +-
 build/aegisub_vs2008/aegisub_vs2008.vcproj | 8 ++++++++
 3 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/aegisub/subs_preview.cpp b/aegisub/subs_preview.cpp
index 1e3f4cf16..7f85b2595 100644
--- a/aegisub/subs_preview.cpp
+++ b/aegisub/subs_preview.cpp
@@ -138,7 +138,7 @@ void SubtitlesPreview::UpdateBitmap(int w,int h) {
 	// Get AegiVideoFrame
 	if (!vid) vid = new DummyVideoProvider(0.0,10,w,h,backColour,true);
 	AegiVideoFrame frame;
-	frame.CopyFrom(vid->GetFrame(0));
+	frame.CopyFrom(vid->GetFrame(0,FORMAT_RGB32));
 
 	// Try to get subtitles provider
 	SubtitlesProvider *provider = NULL;
diff --git a/aegisub/subtitle_format_dvd.cpp b/aegisub/subtitle_format_dvd.cpp
index 9130c02cd..c98132be4 100644
--- a/aegisub/subtitle_format_dvd.cpp
+++ b/aegisub/subtitle_format_dvd.cpp
@@ -80,7 +80,7 @@ void DVDSubtitleFormat::GetSubPictureList(std::vector<SubPicture> &pics) {
 	int w = 720;
 	int h = 480;
 	VideoProvider *video = new DummyVideoProvider(10,1,w,h,wxColour(255,0,0),false);
-	AegiVideoFrame srcFrame = video->GetFrame(0);
+	AegiVideoFrame srcFrame = video->GetFrame(0,FORMAT_RGB32);
 	delete video;
 
 	// Count and index lines
diff --git a/build/aegisub_vs2008/aegisub_vs2008.vcproj b/build/aegisub_vs2008/aegisub_vs2008.vcproj
index 955bb35c2..d08d6f47e 100644
--- a/build/aegisub_vs2008/aegisub_vs2008.vcproj
+++ b/build/aegisub_vs2008/aegisub_vs2008.vcproj
@@ -1608,6 +1608,14 @@
 				RelativePath="..\..\aegisub\video_provider_avs.h"
 				>
 			</File>
+			<File
+				RelativePath="..\..\aegisub\video_provider_cache.cpp"
+				>
+			</File>
+			<File
+				RelativePath="..\..\aegisub\video_provider_cache.h"
+				>
+			</File>
 			<File
 				RelativePath="..\..\aegisub\video_provider_dshow.cpp"
 				>
-- 
GitLab