Fix thinko in 5c49ce9.
authorCarl Hetherington <cth@carlh.net>
Thu, 7 Jun 2018 08:27:35 +0000 (09:27 +0100)
committerCarl Hetherington <cth@carlh.net>
Thu, 7 Jun 2018 08:27:35 +0000 (09:27 +0100)
src/lib/player.cc

index c94e0b549602eff985ff1318208f60471ffe7bee..7ec8acffa42e0e7309267a1daf952e320db5e9f6 100644 (file)
@@ -561,7 +561,7 @@ Player::pass ()
                    content (but the decoder does not know it yet);
                    check for that and fake it here if necessary.
                */
-               DCPTime const t = content_time_to_dcp (i, min(i->decoder->position(), i->content->trim_start()));
+               DCPTime const t = content_time_to_dcp (i, max(i->decoder->position(), i->content->trim_start()));
                if (t > i->content->end()) {
                        i->done = true;
                } else {