commit/StationPlaylist: josephsl: Merged stream label eraser

  • From: commits-noreply@xxxxxxxxxxxxx
  • To: nvda-addons-commits@xxxxxxxxxxxxx
  • Date: Fri, 13 Mar 2015 20:58:47 -0000

1 new commit in StationPlaylist:

https://bitbucket.org/nvdaaddonteam/stationplaylist/commits/1b5570aacc78/
Changeset:   1b5570aacc78
Branch:      master
User:        josephsl
Date:        2015-03-13 20:58:34+00:00
Summary:     Merged stream label eraser

Affected #:  1 file

diff --git a/addon/globalPlugins/SPLStudioUtils/encoders.py 
b/addon/globalPlugins/SPLStudioUtils/encoders.py
index de58690..cfc0f31 100755
--- a/addon/globalPlugins/SPLStudioUtils/encoders.py
+++ b/addon/globalPlugins/SPLStudioUtils/encoders.py
@@ -373,7 +373,10 @@ class SAMEncoder(Encoder):
                        # Find the exact or closest successor.
                        else:
                                startPosition = 0
-                               if pos > min(encoderPositions):
+                               if pos == min(encoderPositions):
+                                       del SAMStreamLabels[pos]
+                                       startPosition = 1
+                               elif pos > min(encoderPositions):
                                        for candidate in encoderPositions:
                                                if candidate >= pos:
                                                        startPositionCandidate 
= encoderPositions.index(candidate)

Repository URL: https://bitbucket.org/nvdaaddonteam/stationplaylist/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.

Other related posts:

  • » commit/StationPlaylist: josephsl: Merged stream label eraser - commits-noreply