diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-05-02 13:51:07 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-05-02 13:51:07 +0100 |
| commit | 5e4cb2b8b06a9efb91e5f35b475a8f824afd1713 (patch) | |
| tree | ab5a47e562685b74c912a369ce68a3fc6a35b8cb /src/lib/subtitle_decoder.cc | |
| parent | 9f106b684560b37a60e46aa817f1de895603dfaf (diff) | |
Fix crash.
Diffstat (limited to 'src/lib/subtitle_decoder.cc')
| -rw-r--r-- | src/lib/subtitle_decoder.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/subtitle_decoder.cc b/src/lib/subtitle_decoder.cc index 92355ad62..0f5a1992c 100644 --- a/src/lib/subtitle_decoder.cc +++ b/src/lib/subtitle_decoder.cc @@ -60,7 +60,7 @@ SubtitleDecoder::get (list<shared_ptr<T> > const & subs, ContentTime from, Conte * * XXX: with subs being sparse, this may need more care... */ - while (!pass() && (subs.front()->from() > from || to < subs.back()->to())) {} + while (!pass() && (subs.empty() || (subs.front()->from() > from || to < subs.back()->to()))) {} /* Now look for what we wanted in the data we have collected */ /* XXX: inefficient */ |
