npapi-vlc | branch: master | Sergey Radionov <rsa...@gmail.com> | Mon Dec 12 
10:48:22 2011 +0700| [9828de08eca8b76684e1011ea0aaf2364bdf32f2] | committer: 
Jean-Baptiste Kempf

npapi win32: fixed VlcPluginWin fullscreen member functions

Signed-off-by: Jean-Baptiste Kempf <j...@videolan.org>

> http://git.videolan.org/gitweb.cgi/npapi-vlc.git/?a=commit;h=9828de08eca8b76684e1011ea0aaf2364bdf32f2
---

 npapi/vlcplugin_win.cpp |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/npapi/vlcplugin_win.cpp b/npapi/vlcplugin_win.cpp
index 358a746..de71019 100644
--- a/npapi/vlcplugin_win.cpp
+++ b/npapi/vlcplugin_win.cpp
@@ -101,22 +101,22 @@ void VlcPluginWin::set_player_window()
 
 void VlcPluginWin::toggle_fullscreen()
 {
-    if (playlist_isplaying())
-        libvlc_toggle_fullscreen(libvlc_media_player);
+    _WindowsManager.ToggleFullScreen();
 }
 
 void VlcPluginWin::set_fullscreen(int yes)
 {
-    if (playlist_isplaying())
-        libvlc_set_fullscreen(libvlc_media_player,yes);
+    if(yes){
+        _WindowsManager.StartFullScreen();
+    }
+    else{
+        _WindowsManager.EndFullScreen();
+    }
 }
 
 int  VlcPluginWin::get_fullscreen()
 {
-    int r = 0;
-    if (playlist_isplaying())
-        r = libvlc_get_fullscreen(libvlc_media_player);
-    return r;
+    return _WindowsManager.IsFullScreen();
 }
 
 void VlcPluginWin::show_toolbar()

_______________________________________________
vlc-commits mailing list
vlc-commits@videolan.org
http://mailman.videolan.org/listinfo/vlc-commits

Reply via email to