From 27a159793ac4323da7bf45dce1f78145038e7e79 Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Fri, 30 Apr 2010 03:00:15 +0000 Subject: [PATCH] (Re)add catch for wchar_t in VideoDisplay::Render as it turns out that some of the stuff it calls still throws strings Originally committed to SVN as r4249. --- aegisub/src/video_display.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/aegisub/src/video_display.cpp b/aegisub/src/video_display.cpp index 6a9f29b04..590735971 100644 --- a/aegisub/src/video_display.cpp +++ b/aegisub/src/video_display.cpp @@ -303,6 +303,13 @@ catch (const VideoOutException &err) { err.GetMessage().c_str()); VideoContext::Get()->Reset(); } +catch (const wchar_t *err) { + wxLogError( + L"An error occurred trying to render the video frame on the screen.\n" + L"Error message reported: %s", + err); + VideoContext::Get()->Reset(); +} catch (...) { wxLogError( _T("An error occurred trying to render the video frame to screen.\n")