viewer: allow switching open sequences
This commit is contained in:
@@ -75,7 +75,6 @@ void FFmpegEncoder::WriteAudio(const AudioRenderingParams &pcm_info, const QStri
|
||||
reinterpret_cast<const uint8_t**>(&input_data_array),
|
||||
samples_needed);
|
||||
|
||||
//qDebug() << "swr_convert returned" << converted << "samples";
|
||||
frame->pts = sample_counter;
|
||||
|
||||
sample_counter += converted;
|
||||
|
||||
@@ -65,14 +65,9 @@ void FFmpegFrameCache::Client::accessed(int i)
|
||||
|
||||
void FFmpegFrameCache::Client::remove_old_frames(qint64 older_than)
|
||||
{
|
||||
//int counter = 0;
|
||||
|
||||
while (!frames_.isEmpty() && frames_.first().accessed < older_than) {
|
||||
FFmpegFrameCache::Release(frames_.takeFirst().frame);
|
||||
//counter++;
|
||||
}
|
||||
|
||||
//qDebug() << " * Removed" << counter << "frames";
|
||||
}
|
||||
|
||||
Frame* FFmpegFrameCache::Get(const VideoRenderingParams ¶ms)
|
||||
|
||||
Reference in New Issue
Block a user