Fix _audio_position after seek.
[dcpomatic.git] / src / lib / player.cc
index da7e7c147c0b06605aad90fb81db1da0eb57f1db..eb7b177ecd21aacc86bc5c96d89e404a8333f7e1 100644 (file)
@@ -121,7 +121,7 @@ Player::pass ()
 
                        dec->set_dcp_times (_film->video_frame_rate(), _film->audio_frame_rate(), (*i)->frc, offset);
                        DCPTime const t = dec->dcp_time - offset;
-                       if (t >= (*i)->content->full_length() - (*i)->content->trim_end ()) {
+                       if (t >= ((*i)->content->full_length() - (*i)->content->trim_end ())) {
                                /* In the end-trimmed part; decoder has nothing else to give us */
                                dec.reset ();
                                done = true;