942
955
# work around GStreamer bug where stream time will be -1 (indicating error)
943
956
# and then cast to guint64 which results in the maximum 64-bit integer value.
944
957
# In this case stream-time and endtime are bogus values, but duration is still correct.
946
959
if stream_time == ((2**64) - 1):
947
960
delta = int(structure["duration"] / Utils.NANO_TO_MILLI_DIVISOR)
948
961
self.levels_list.append_time_delta(delta, peaks)