Further fixes to audio decoder positioning logic.
authorCarl Hetherington <cth@carlh.net>
Tue, 10 Oct 2017 18:55:46 +0000 (19:55 +0100)
committerCarl Hetherington <cth@carlh.net>
Tue, 10 Oct 2017 18:55:46 +0000 (19:55 +0100)
src/lib/player.cc

index 496153b..51f6a32 100644 (file)
@@ -732,7 +732,7 @@ Player::audio (weak_ptr<Piece> wp, AudioStreamPtr stream, ContentAudio content_a
                pair<shared_ptr<AudioBuffers>, DCPTime> cut = discard_audio (content_audio.audio, time, piece->content->position());
                if (!cut.first) {
                        /* This audio is entirely discarded */
-                       return 0;
+                       return accepted;
                }
                content_audio.audio = cut.first;
                time = cut.second;