MusicChunk: use SignedSongTime for the time stamp

This commit is contained in:
Max Kellermann
2014-08-29 13:15:33 +02:00
parent 147d301f10
commit 9d3a85d434
5 changed files with 12 additions and 10 deletions

View File

@@ -341,10 +341,10 @@ MultipleOutputs::Check()
this chunk */
return pipe->GetSize();
if (chunk->length > 0 && chunk->times >= 0.0)
if (chunk->length > 0 && !chunk->time.IsNegative())
/* only update elapsed_time if the chunk
provides a defined value */
elapsed_time = SignedSongTime::FromS(chunk->times);
elapsed_time = chunk->time;
is_tail = chunk->next == nullptr;
if (is_tail)