Skip to content

Commit

Permalink
bugfix in stopbackdropvideo to avoid gs when lib not loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
DonDavici committed Feb 21, 2015
1 parent 3bb574c commit 5bef09f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/DP_View.py
Original file line number Diff line number Diff line change
Expand Up @@ -1188,7 +1188,7 @@ def onKeyBlueLong(self):
def onToggleView(self):
printl("", self, "S")

if config.plugins.dreamplex.useBackdropVideos.value:
if config.plugins.dreamplex.useBackdropVideos.value and self.loadedStillPictureLib:
self.stopBackdropVideo()
cause = (DP_View.ON_CLOSED_CAUSE_CHANGE_VIEW, )
self.leaveNow(cause)
Expand Down Expand Up @@ -1284,7 +1284,7 @@ def onEnter(self):
# we need this for onEnter-func in child lib

if entryData['tagType'] == "Track" or entryData['tagType'] == "Video":
if config.plugins.dreamplex.useBackdropVideos.value:
if config.plugins.dreamplex.useBackdropVideos.value and self.loadedStillPictureLib:
self.stopBackdropVideo()

currentIndex = self["listview"].getIndex()
Expand Down

0 comments on commit 5bef09f

Please sign in to comment.