Unholy melange of stuff; setup a standard test config; send / receive subs to / from...
[dcpomatic.git] / src / lib / decoder.cc
index 1f771da2df577df564a63a4198a8ce4db9a699f9..8989a938b25768298ffdaf67ca1a95aff12bedb1 100644 (file)
@@ -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));
        }
 }