architecture: move loop modes to clips
This commit is contained in:
@@ -29,17 +29,15 @@ class FootageJob
|
||||
{
|
||||
public:
|
||||
FootageJob() :
|
||||
type_(Track::kNone),
|
||||
loop_mode_(Footage::kLoopModeOff)
|
||||
type_(Track::kNone)
|
||||
{
|
||||
}
|
||||
|
||||
FootageJob(const QString& decoder, const QString& filename, Track::Type type, const rational& length, Footage::LoopMode loop_mode) :
|
||||
FootageJob(const QString& decoder, const QString& filename, Track::Type type, const rational& length) :
|
||||
decoder_(decoder),
|
||||
filename_(filename),
|
||||
type_(type),
|
||||
length_(length),
|
||||
loop_mode_(loop_mode)
|
||||
length_(length)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -98,16 +96,6 @@ public:
|
||||
length_ = length;
|
||||
}
|
||||
|
||||
Footage::LoopMode loop_mode() const
|
||||
{
|
||||
return loop_mode_;
|
||||
}
|
||||
|
||||
void set_loop_mode(Footage::LoopMode loop_mode)
|
||||
{
|
||||
loop_mode_ = loop_mode;
|
||||
}
|
||||
|
||||
private:
|
||||
QString decoder_;
|
||||
|
||||
@@ -123,8 +111,6 @@ private:
|
||||
|
||||
rational length_;
|
||||
|
||||
Footage::LoopMode loop_mode_;
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
@@ -503,7 +503,7 @@ void RenderProcessor::ProcessAudioFootage(SampleBuffer &destination, const Foota
|
||||
Decoder::RetrieveAudioStatus status = decoder->RetrieveAudio(destination,
|
||||
input_time, audio_params,
|
||||
stream.cache_path(),
|
||||
stream.loop_mode(),
|
||||
loop_mode(),
|
||||
static_cast<RenderMode::Mode>(ticket_->property("mode").toInt()));
|
||||
|
||||
if (status == Decoder::kWaitingForConform) {
|
||||
|
||||
Reference in New Issue
Block a user