Kaydet (Commit) 55b489cc authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Transport Referer from MediaWindowImpl::setURL to ...::updateMediaItem

Change-Id: I9cc6ae4fc5fc67837fcfc5fdea92baadd032996e
üst f62ef4e8
...@@ -253,6 +253,7 @@ uno::Reference< media::XPlayer > MediaWindowImpl::createPlayer( const OUString& ...@@ -253,6 +253,7 @@ uno::Reference< media::XPlayer > MediaWindowImpl::createPlayer( const OUString&
void MediaWindowImpl::setURL( const OUString& rURL, void MediaWindowImpl::setURL( const OUString& rURL,
OUString const& rTempURL, OUString const& rReferer) OUString const& rTempURL, OUString const& rReferer)
{ {
maReferer = rReferer;
if( rURL != getURL() ) if( rURL != getURL() )
{ {
if( mxPlayer.is() ) if( mxPlayer.is() )
...@@ -331,7 +332,7 @@ void MediaWindowImpl::updateMediaItem( MediaItem& rItem ) const ...@@ -331,7 +332,7 @@ void MediaWindowImpl::updateMediaItem( MediaItem& rItem ) const
rItem.setMute( isMute() ); rItem.setMute( isMute() );
rItem.setVolumeDB( getVolumeDB() ); rItem.setVolumeDB( getVolumeDB() );
rItem.setZoom( getZoom() ); rItem.setZoom( getZoom() );
rItem.setURL( getURL(), mTempFileURL, ""/*TODO?*/ ); rItem.setURL( getURL(), mTempFileURL, maReferer );
} }
void MediaWindowImpl::executeMediaItem( const MediaItem& rItem ) void MediaWindowImpl::executeMediaItem( const MediaItem& rItem )
......
...@@ -160,6 +160,7 @@ namespace avmedia ...@@ -160,6 +160,7 @@ namespace avmedia
OUString maFileURL; OUString maFileURL;
OUString mTempFileURL; OUString mTempFileURL;
OUString maReferer;
::com::sun::star::uno::Reference< ::com::sun::star::media::XPlayer > mxPlayer; ::com::sun::star::uno::Reference< ::com::sun::star::media::XPlayer > mxPlayer;
::com::sun::star::uno::Reference< ::com::sun::star::media::XPlayerWindow > mxPlayerWindow; ::com::sun::star::uno::Reference< ::com::sun::star::media::XPlayerWindow > mxPlayerWindow;
MediaWindow* mpMediaWindow; MediaWindow* mpMediaWindow;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment