diff options
author | chriszero <zerov83@gmail.com> | 2015-04-05 22:58:58 +0200 |
---|---|---|
committer | chriszero <zerov83@gmail.com> | 2015-04-05 22:58:58 +0200 |
commit | 13605a7c30e5e35f33ba824c92d2e7cf706a0fa9 (patch) | |
tree | 5da678c35791595a8f6e6508bb028b018cb2dd90 /plexSdOsd.cpp | |
parent | f3d792a866ba602458d5d6c521bafa66e56a5528 (diff) | |
download | vdr-plugin-plex-13605a7c30e5e35f33ba824c92d2e7cf706a0fa9.tar.gz vdr-plugin-plex-13605a7c30e5e35f33ba824c92d2e7cf706a0fa9.tar.bz2 |
detect skindesigner support
Diffstat (limited to 'plexSdOsd.cpp')
-rw-r--r-- | plexSdOsd.cpp | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/plexSdOsd.cpp b/plexSdOsd.cpp index db50168..6e3ae17 100644 --- a/plexSdOsd.cpp +++ b/plexSdOsd.cpp @@ -14,6 +14,20 @@ cPlexSdOsd::~cPlexSdOsd() cPictureCache::GetInstance().RemoveAll(); } +bool cPlexSdOsd::SdSupport() +{ + bool skinDesignerAvailable = InitSkindesignerInterface("plex"); + if (skinDesignerAvailable) { + + cOsdView *rootView = GetOsdView(eViews::viRootView); + if (!rootView) { + esyslog("[plex]: used skindesigner skin does not support plex"); + return false; + } + } + return skinDesignerAvailable; +} + void cPlexSdOsd::Show(void) { bool skinDesignerAvailable = InitSkindesignerInterface("plex"); @@ -26,7 +40,7 @@ void cPlexSdOsd::Show(void) esyslog("[plex]: used skindesigner skin does not support plex"); return; } - + m_pBrowserGrid = std::shared_ptr<cBrowserGrid>(new cBrowserGrid(m_pRootView)); Flush(); } |