diff options
Diffstat (limited to 'avmedia')
-rw-r--r-- | avmedia/source/win/framegrabber.cxx | 3 | ||||
-rw-r--r-- | avmedia/source/win/player.cxx | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/avmedia/source/win/framegrabber.cxx b/avmedia/source/win/framegrabber.cxx index e6c808787bee..aa270660a7f4 100644 --- a/avmedia/source/win/framegrabber.cxx +++ b/avmedia/source/win/framegrabber.cxx @@ -44,6 +44,7 @@ #include <tools/stream.hxx> #include <vcl/graph.hxx> #include <vcl/dibtools.hxx> +#include <o3tl/char16_t2wchar_t.hxx> #define AVMEDIA_WIN_FRAMEGRABBER_IMPLEMENTATIONNAME "com.sun.star.comp.avmedia.FrameGrabber_DirectX" #define AVMEDIA_WIN_FRAMEGRABBER_SERVICENAME "com.sun.star.media.FrameGrabber_DirectX" @@ -78,7 +79,7 @@ IMediaDet* implCreateMediaDet( const OUString& rURL ) if( osl::FileBase::getSystemPathFromFileURL( rURL, aLocalStr ) == osl::FileBase::E_None ) { - BSTR bstrFilename = SysAllocString(SAL_W(aLocalStr.getStr())); + BSTR bstrFilename = SysAllocString(o3tl::toW(aLocalStr.getStr())); if( !SUCCEEDED( pDet->put_Filename( bstrFilename ) ) ) { // Shouldn't we free this string unconditionally, not only in case of failure? diff --git a/avmedia/source/win/player.cxx b/avmedia/source/win/player.cxx index 6ecb6a261ecc..4aef762f63bd 100644 --- a/avmedia/source/win/player.cxx +++ b/avmedia/source/win/player.cxx @@ -34,6 +34,7 @@ #include "framegrabber.hxx" #include "window.hxx" #include <cppuhelper/supportsservice.hxx> +#include <o3tl/char16_t2wchar_t.hxx> #define AVMEDIA_WIN_PLAYER_IMPLEMENTATIONNAME "com.sun.star.comp.avmedia.Player_DirectX" #define AVMEDIA_WIN_PLAYER_SERVICENAME "com.sun.star.media.Player_DirectX" @@ -148,7 +149,7 @@ bool Player::create( const OUString& rURL ) // It disables the desktop composition as soon as RenderFile is called // also causes some other problems: video rendering is not reliable - if( SUCCEEDED( hR = mpGB->RenderFile( SAL_W(rURL.getStr()), nullptr ) ) && + if( SUCCEEDED( hR = mpGB->RenderFile( o3tl::toW(rURL.getStr()), nullptr ) ) && SUCCEEDED( hR = mpGB->QueryInterface( IID_IMediaControl, reinterpret_cast<void**>(&mpMC) ) ) && SUCCEEDED( hR = mpGB->QueryInterface( IID_IMediaEventEx, reinterpret_cast<void**>(&mpME) ) ) && SUCCEEDED( hR = mpGB->QueryInterface( IID_IMediaSeeking, reinterpret_cast<void**>(&mpMS) ) ) && |