diff options
author | Norbert Thiebaud <nthiebaud@gmail.com> | 2011-03-13 19:53:21 -0500 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2011-03-13 19:53:21 -0500 |
commit | 412a60325c547f4aaf05635c169ed4428102642c (patch) | |
tree | dc82ece50b67f77a5df6612efcf3db7564e8c3e6 /avmedia | |
parent | af00ca537358a6b6c8a7f5f17e8819494f6ee36c (diff) |
fix issue with avmedia GSTREAMER on mac
Diffstat (limited to 'avmedia')
-rwxr-xr-x | avmedia/source/viewer/mediawindow_impl.cxx | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/avmedia/source/viewer/mediawindow_impl.cxx b/avmedia/source/viewer/mediawindow_impl.cxx index 8d7bed51d4..48cd33b078 100755 --- a/avmedia/source/viewer/mediawindow_impl.cxx +++ b/avmedia/source/viewer/mediawindow_impl.cxx @@ -238,14 +238,11 @@ void MediaWindowImpl::onURLChanged() aArgs[ 0 ] = uno::makeAny( nWndHandle ); aArgs[ 1 ] = uno::makeAny( awt::Rectangle( aPoint.X(), aPoint.Y(), aSize.Width(), aSize.Height() ) ); - const SystemEnvData *pSystemData = maChildWindow.GetSystemData(); - OSL_TRACE( "MediaWindowImpl::onURLChanged xwindow id: %ld", pSystemData->aWindow ); - aArgs[ 2 ] = uno::makeAny( pSystemData->aWindow ); - + aArgs[ 2 ] = uno::makeAny( reinterpret_cast< sal_IntPtr >( &maChildWindow ) ); + try { - if( pSystemData->aWindow != 0 ) - xPlayerWindow = getPlayer()->createPlayerWindow( aArgs ); + xPlayerWindow = getPlayer()->createPlayerWindow( aArgs ); } catch( uno::RuntimeException ) { |