- if (i->main_picture()) {
- _reel_lengths.push_back (i->main_picture()->actual_duration());
- } else if (i->main_sound()) {
- _reel_lengths.push_back (i->main_sound()->actual_duration());
- } else if (i->main_subtitle()) {
- _reel_lengths.push_back (i->main_subtitle()->actual_duration());
- } else if (!i->closed_captions().empty()) {
- _reel_lengths.push_back (i->closed_captions().front()->actual_duration());
- } else if (!i->atmos()) {
- _reel_lengths.push_back (i->atmos()->actual_duration());
+ if (reel->main_picture()) {
+ _reel_lengths.push_back(reel->main_picture()->actual_duration());
+ } else if (reel->main_sound()) {
+ _reel_lengths.push_back(reel->main_sound()->actual_duration());
+ } else if (reel->main_subtitle()) {
+ _reel_lengths.push_back(reel->main_subtitle()->actual_duration());
+ } else if (!reel->closed_captions().empty()) {
+ _reel_lengths.push_back(reel->closed_captions().front()->actual_duration());
+ } else if (!reel->atmos()) {
+ _reel_lengths.push_back(reel->atmos()->actual_duration());