Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add isvideo info for slideshow window.

  • Loading branch information...
commit d18d7c124ce93becc91fcd5284d0444a2b8d20a4 1 parent cdedbd8
@ulion authored
Showing with 7 additions and 0 deletions.
  1. +6 −0 xbmc/GUIInfoManager.cpp
  2. +1 −0  xbmc/GUIInfoManager.h
View
6 xbmc/GUIInfoManager.cpp
@@ -649,6 +649,7 @@ const infomap pvr[] = {{ "isrecording", PVR_IS_RECORDING
const infomap slideshow[] = {{ "ispaused", SLIDESHOW_ISPAUSED },
{ "isactive", SLIDESHOW_ISACTIVE },
+ { "isvideo", SLIDESHOW_ISVIDEO },
{ "israndom", SLIDESHOW_ISRANDOM }};
const int picture_slide_map[] = {/* LISTITEM_PICTURE_RESOLUTION => */ SLIDE_RESOLUTION,
@@ -2304,6 +2305,11 @@ bool CGUIInfoManager::GetBool(int condition1, int contextWindow, const CGUIListI
CGUIWindowSlideShow *slideShow = (CGUIWindowSlideShow *)g_windowManager.GetWindow(WINDOW_SLIDESHOW);
bReturn = (slideShow && slideShow->InSlideShow());
}
+ else if (condition == SLIDESHOW_ISVIDEO)
+ {
+ CGUIWindowSlideShow *slideShow = (CGUIWindowSlideShow *)g_windowManager.GetWindow(WINDOW_SLIDESHOW);
+ bReturn = (slideShow && slideShow->GetCurrentSlide() && slideShow->GetCurrentSlide()->IsVideo());
+ }
else if (g_application.IsPlaying())
{
switch (condition)
View
1  xbmc/GUIInfoManager.h
@@ -408,6 +408,7 @@ namespace INFO
#define SLIDESHOW_ISPAUSED 800
#define SLIDESHOW_ISRANDOM 801
#define SLIDESHOW_ISACTIVE 802
+#define SLIDESHOW_ISVIDEO 803
#define SLIDE_INFO_START 900
#define SLIDE_INFO_END 980
Please sign in to comment.
Something went wrong with that request. Please try again.