make getCurrentPosition useable from other classes
authorFelix Domke <tmbinc@elitedvb.net>
Mon, 27 Feb 2006 22:02:53 +0000 (22:02 +0000)
committerFelix Domke <tmbinc@elitedvb.net>
Mon, 27 Feb 2006 22:02:53 +0000 (22:02 +0000)
lib/python/Screens/InfoBarGenerics.py

index 0e186fffdd5c3560fe6bddd5eef744d3befb06c7..d6a10012332311e7a39fd00906958038674a51d3 100644 (file)
@@ -1232,7 +1232,7 @@ class InfoBarCueSheetSupport:
                        return None
                return service.seek()
 
                        return None
                return service.seek()
 
-       def __getCurrentPosition(self):
+       def cueGetCurrentPosition(self):
                seek = self.__getSeekable()
                if seek is None:
                        return None
                seek = self.__getSeekable()
                if seek is None:
                        return None
@@ -1242,7 +1242,7 @@ class InfoBarCueSheetSupport:
                return long(r[1])
 
        def jumpPreviousNextMark(self, cmp, alternative=None):
                return long(r[1])
 
        def jumpPreviousNextMark(self, cmp, alternative=None):
-               current_pos = self.__getCurrentPosition()
+               current_pos = self.cueGetCurrentPosition()
                if current_pos is None:
                        return
                mark = self.getNearestCutPoint(current_pos, cmp=cmp)
                if current_pos is None:
                        return
                mark = self.getNearestCutPoint(current_pos, cmp=cmp)
@@ -1275,7 +1275,7 @@ class InfoBarCueSheetSupport:
                return nearest
 
        def toggleMark(self, onlyremove=False, onlyadd=False, tolerance=5*90000):
                return nearest
 
        def toggleMark(self, onlyremove=False, onlyadd=False, tolerance=5*90000):
-               current_pos = self.__getCurrentPosition()
+               current_pos = self.cueGetCurrentPosition()
                if current_pos is None:
                        print "not seekable"
                        return
                if current_pos is None:
                        print "not seekable"
                        return