[vlc-commits] mac plugin: full respect 'toolbar' element

Felix Paul Kühne git at videolan.org
Mon Feb 17 23:42:09 CET 2014


npapi-vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Mon Feb 17 23:41:59 2014 +0100| [4aec7dc46c94079cf88982984f0cf08e73614637] | committer: Felix Paul Kühne

mac plugin: full respect 'toolbar' element

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

 npapi/vlcplugin_mac.mm |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/npapi/vlcplugin_mac.mm b/npapi/vlcplugin_mac.mm
index 22f5298..fa33ef8 100644
--- a/npapi/vlcplugin_mac.mm
+++ b/npapi/vlcplugin_mac.mm
@@ -231,8 +231,10 @@ int  VlcPluginMac::get_fullscreen()
 
 void VlcPluginMac::set_toolbar_visible(bool b_value)
 {
-    if (!get_options().get_show_toolbar())
+    if (!get_options().get_show_toolbar()) {
+        [controllerLayer setHidden: YES];
         return;
+    }
     [controllerLayer setHidden: !b_value];
 }
 



More information about the vlc-commits mailing list