python/lib/aubio/slicing.py: next_stamp can be 0
authorPaul Brossier <piem@piem.org>
Sun, 12 Jan 2014 04:00:15 +0000 (00:00 -0400)
committerPaul Brossier <piem@piem.org>
Sun, 12 Jan 2014 04:00:15 +0000 (00:00 -0400)
python/lib/aubio/slicing.py

index 2ffda23..9e0af53 100644 (file)
@@ -29,8 +29,6 @@ def slice_source_at_stamps(source_file, timestamps, timestamps_end = None,
     total_frames = 0
     # get next region
     next_stamp = int(timestamps.pop(0))
-    if not next_stamp:
-        next_stamp = int(timestamps.pop(0))
 
     while True:
         # get hopsize new samples from source