diff options
author | Minh Ngo <nlminhtl@gmail.com> | 2013-07-16 08:35:11 +0300 |
---|---|---|
committer | Michael Meeks <michael.meeks@suse.com> | 2013-07-26 10:50:24 +0100 |
commit | 6a1f5f0aebea7a7dfc58a50167408e9477564903 (patch) | |
tree | 2fbea4dc7e8198b3efa9e5c29bc0c9b9e8473afa | |
parent | 79ae34928c134c8143cb21da651b67caabd21794 (diff) |
Possibly binds a video frame into the WIN32 window
Change-Id: Ib45921e3162e7ce5f306c23b0b158a4c35102202
-rw-r--r-- | avmedia/source/vlc/vlcplayer.cxx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/avmedia/source/vlc/vlcplayer.cxx b/avmedia/source/vlc/vlcplayer.cxx index d54cb2cbcefe..376604dc9ef4 100644 --- a/avmedia/source/vlc/vlcplayer.cxx +++ b/avmedia/source/vlc/vlcplayer.cxx @@ -36,8 +36,8 @@ namespace VLCPlayer::VLCPlayer( const rtl::OUString& url ) : VLC_Base(m_aMutex) , mInstance( libvlc_new( sizeof( VLC_ARGS ) / sizeof( VLC_ARGS[0] ), VLC_ARGS ), libvlc_release ) - , mPlayer( libvlc_media_player_new(mInstance.get()), libvlc_media_player_release ) - , mMedia( InitMedia( url, mInstance), libvlc_media_release ) + , mPlayer( libvlc_media_player_new( mInstance.get() ), libvlc_media_player_release ) + , mMedia( InitMedia( url, mInstance ), libvlc_media_release ) { libvlc_media_player_set_media( mPlayer.get(), mMedia.get() ); } @@ -165,7 +165,11 @@ uno::Reference< css::media::XPlayerWindow > SAL_CALL VLCPlayer::createPlayerWind if (winID != -1) { +#if defined(WIN32) && !defined(UNIX) + libvlc_media_player_set_hwnd( mPlayer.get(), winID ); +#else libvlc_media_player_set_xwindow( mPlayer.get(), winID ); +#endif } return uno::Reference< css::media::XPlayerWindow >( window ); |