diff options
| author | Carl Hetherington <cth@carlh.net> | 2012-10-15 23:19:27 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2012-10-15 23:19:27 +0100 |
| commit | e946a66554185459043af2a8bdae575e255c743d (patch) | |
| tree | 42d7ee7da6f6646f91b5429ed20fe84db92387d8 /src/lib/decoder.cc | |
| parent | 43990add893eccf350f280e2dd3f947a94f3e9aa (diff) | |
Unholy melange of stuff; setup a standard test config; send / receive subs to / from servers; various other image stride-related fixes.
Diffstat (limited to 'src/lib/decoder.cc')
| -rw-r--r-- | src/lib/decoder.cc | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/lib/decoder.cc b/src/lib/decoder.cc index 1f771da2d..8989a938b 100644 --- a/src/lib/decoder.cc +++ b/src/lib/decoder.cc @@ -417,10 +417,7 @@ Decoder::process_subtitle (shared_ptr<Subtitle> s) _subtitle = s; if (_opt->apply_crop) { - list<shared_ptr<SubtitleImage> > im = _subtitle->images (); - for (list<shared_ptr<SubtitleImage> >::iterator i = im.begin(); i != im.end(); ++i) { - Position const p = (*i)->position (); - (*i)->set_position (Position (p.x - _fs->crop.left, p.y - _fs->crop.top)); - } + Position const p = _subtitle->position (); + _subtitle->set_position (Position (p.x - _fs->crop.left, p.y - _fs->crop.top)); } } |
