[vlc-commits] windowless-mac: show black screen only if we have no frame
Felix Paul Kühne
git at videolan.org
Fri Jun 21 12:46:58 CEST 2013
npapi-vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Fri Jun 21 12:23:56 2013 +0200| [e6fc321e2652f18a3e893a5cf92d07227bcd1611] | committer: Felix Paul Kühne
windowless-mac: show black screen only if we have no frame
> http://git.videolan.org/gitweb.cgi/npapi-vlc.git/?a=commit;h=e6fc321e2652f18a3e893a5cf92d07227bcd1611
---
npapi/vlcwindowless_mac.cpp | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/npapi/vlcwindowless_mac.cpp b/npapi/vlcwindowless_mac.cpp
index 2711533..e8bb37e 100644
--- a/npapi/vlcwindowless_mac.cpp
+++ b/npapi/vlcwindowless_mac.cpp
@@ -159,18 +159,15 @@ bool VlcWindowlessMac::handle_event(void *event)
return false;
}
- if (!VlcPluginBase::playlist_isplaying()) {
- drawNoPlayback(cgContext);
- return true;
- }
-
CGContextClearRect(cgContext, CGRectMake(0, 0, npwindow.width, npwindow.height) );
if(!VlcPluginBase::player_has_vout())
return true;
- if (m_media_width == 0 || m_media_height == 0)
+ if (m_media_width == 0 || m_media_height == 0) {
+ drawNoPlayback(cgContext);
return true;
+ }
CGContextSaveGState(cgContext);
More information about the vlc-commits
mailing list