#include "lib/dcp_subtitle_content.h"
#include "lib/ffmpeg_content.h"
#include "lib/image_content.h"
+#include "lib/scope_guard.h"
#include "lib/string_text_file_content.h"
#include "lib/text_content.h"
#include "lib/video_content.h"
}
ContentTime const trim = _trim_start->get (i->video_frame_rate().get_value_or(_parent->film()->video_frame_rate()));
- i->set_trim_start (trim);
+ i->set_trim_start(_parent->film(), trim);
}
if (ref) {
for (auto i: _parent->selected()) {
if (i->position() < ph && ph < i->end(film)) {
FrameRateChange const frc = film->active_frame_rate_change (i->position());
- i->set_trim_start (i->trim_start() + ContentTime (ph - i->position(), frc));
+ i->set_trim_start(film, i->trim_start() + ContentTime(ph - i->position(), frc));
new_ph = i->position ();
}
}
}
}
- auto d = new MoveToDialog(this, position, _parent->film());
+ auto d = make_wx<MoveToDialog>(this, position, _parent->film());
if (d->ShowModal() == wxID_OK) {
for (auto i: _parent->selected()) {
i->set_position (_parent->film(), d->position());
}
}
- d->Destroy ();
}