GNOME Bugzilla – Bug 594279
dshowsrcwrapper: use tchar macro for string literals
Last modified: 2009-09-08 13:59:52 UTC
Created attachment 142573 [details] [review] patch To avoid the issues with MultiByte vs UniCode
Hi, this requires to have "Windows SDK for Windows Server 2008" according to: http://blogs.msdn.com/mikewasson/archive/2008/03/07/what-is-strmbasedu-lib-and-where-did-it-go.aspx Well, ok why not. Last thing, why you didn't change the other L ? (ex: L"capture" etc...) Can you describe your build environment ? (os, sdk etc ...)
Oh, I must have missed that one. Ment to change them all. We use Microsoft Visual Studio 2008 on Windows.
I did a fresh frozen build then I only did: --- a/sys/dshowsrcwrapper/gstdshowfakesink.cpp +++ b/sys/dshowsrcwrapper/gstdshowfakesink.cpp @@ -25,7 +25,7 @@ CDshowFakeSink::CDshowFakeSink (): m_hres (S_OK), m_callback (NULL), m_data (NULL), -CBaseRenderer (CLSID_DshowFakeSink, "DshowFakeSink", NULL, &m_hres) +CBaseRenderer (CLSID_DshowFakeSink, _T("DshowFakeSink"), NULL, &m_hres) And then I's ok for both unicode and MBCS. See commit: --- a/sys/dshowsrcwrapper/gstdshowfakesink.cpp +++ b/sys/dshowsrcwrapper/gstdshowfakesink.cpp @@ -25,7 +25,7 @@ CDshowFakeSink::CDshowFakeSink (): m_hres (S_OK), m_callback (NULL), m_data (NULL), -CBaseRenderer (CLSID_DshowFakeSink, "DshowFakeSink", NULL, &m_hres) +CBaseRenderer (CLSID_DshowFakeSink, _T("DshowFakeSink"), NULL, &m_hres) So if you still think other L".." must be replaced by _T then please make a new patch. Thx
commit 503091ae0ef2c4edc68f438b2bd1f30afbe5cf43 Author: Julien Isorce <julien.isorce@gmail.com> Date: Mon Sep 7 16:44:52 2009 +0200 dshowsrcwrapper: add support both Unicode and MBCS