diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-01-11 15:04:18 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-01-11 15:05:15 +0000 |
commit | eea8a6e2181ee805854d29184aab3317264dde94 (patch) | |
tree | ae063194ddfe3f37b47a6664d80a85ad7068a7dd /avmedia | |
parent | f7aca07bf75f4a50e831e1d745ba83234620ce0b (diff) |
fix windows build error
Diffstat (limited to 'avmedia')
-rw-r--r-- | avmedia/source/win/framegrabber.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/avmedia/source/win/framegrabber.cxx b/avmedia/source/win/framegrabber.cxx index 9743d1230e62..fd7264c8fda5 100644 --- a/avmedia/source/win/framegrabber.cxx +++ b/avmedia/source/win/framegrabber.cxx @@ -84,11 +84,11 @@ IMediaDet* FrameGrabber::implCreateMediaDet( const ::rtl::OUString& rURL ) const if( SUCCEEDED( CoCreateInstance( CLSID_MediaDet, NULL, CLSCTX_INPROC_SERVER, IID_IMediaDet, (void**) &pDet ) ) ) { - String aLocalStr; + rtl::OUString aLocalStr; - if( ::utl::LocalFileHelper::ConvertURLToPhysicalName( rURL, aLocalStr ) && aLocalStr.Len() ) + if( ::utl::LocalFileHelper::ConvertURLToPhysicalName( rURL, aLocalStr ) && !aLocalStr.isEmpty() ) { - if( !SUCCEEDED( pDet->put_Filename( ::SysAllocString( reinterpret_cast<LPCOLESTR>(aLocalStr.GetBuffer()) ) ) ) ) + if( !SUCCEEDED( pDet->put_Filename( ::SysAllocString( reinterpret_cast<LPCOLESTR>(aLocalStr.getStr()) ) ) ) ) { pDet->Release(); pDet = NULL; |