commit/StationPlaylist: josephsl: Stream Label Eraser (5.0-dev): adopt the newly modified behaior for SAM encoders.

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

1 new commit in StationPlaylist:

https://bitbucket.org/nvdaaddonteam/stationplaylist/commits/82d836079eb3/
Changeset:   82d836079eb3
Branch:      5.0/streamLabelSuccessor
User:        josephsl
Date:        2015-03-13 20:54:44+00:00
Summary:     Stream Label Eraser (5.0-dev): adopt the newly modified behaior 
for SAM encoders.

Affected #:  1 file

diff --git a/addon/globalPlugins/SPLStudioUtils/encoders.py 
b/addon/globalPlugins/SPLStudioUtils/encoders.py
index c397f9f..3fd3234 100755
--- a/addon/globalPlugins/SPLStudioUtils/encoders.py
+++ b/addon/globalPlugins/SPLStudioUtils/encoders.py
@@ -356,7 +356,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: Stream Label Eraser (5.0-dev): adopt the newly modified behaior for SAM encoders. - commits-noreply