Skip to content

Commit

Permalink
stream.hls: Remove sequence wrap around handler.
Browse files Browse the repository at this point in the history
This caused issues with playlists that never removes
segments and was probably not needed anyway.

Fixes #224.
  • Loading branch information
chrippa committed Nov 17, 2013
1 parent ae92af9 commit 6701491
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/livestreamer/stream/hls.py
Expand Up @@ -261,12 +261,6 @@ def _handle_sequences(self, playlist, sequences):
self.sequence = edge_sequence.num
else:
self.sequence = first_sequence.num
elif first_sequence.num == 0 and self.sequence > 0:
# The sequence number has wrapped around. This should probably not
# happen, but it wasn't until draft-pantos-http-live-streaming-12
# that it was explicitly stated that sequence numbers should never
# decrease.
self.sequence = first_sequence.num

def _queue_sequences(self, fillqueue=False):
for i, sequence in enumerate(self.playlist_sequences):
Expand Down

0 comments on commit 6701491

Please sign in to comment.