summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/wx/player_frame.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/wx/player_frame.cc b/src/wx/player_frame.cc
index a977165a8..c5fcd4200 100644
--- a/src/wx/player_frame.cc
+++ b/src/wx/player_frame.cc
@@ -499,6 +499,9 @@ PlayerFrame::prepare_to_play_film(optional<float> crop_to_ratio)
);
j->Check(!first->cpl() || i->id() == *first->cpl());
++id;
+ if (id >= (ID_view_cpl + MAX_CPLS)) {
+ break;
+ }
}
}