ClipManager::~ClipManager()
{
- qDeleteAll(m_clipList);
- m_clipList.clear();
m_audioThumbsQueue.clear();
m_generatingAudioId.clear();
+ qDeleteAll(m_clipList);
+ m_clipList.clear();
}
void ClipManager::clear()
{
+ m_folderList.clear();
+ m_audioThumbsQueue.clear();
+ m_modifiedClips.clear();
qDeleteAll(m_clipList);
m_clipList.clear();
m_clipIdCounter = 1;
m_folderIdCounter = 1;
- m_folderList.clear();
- m_audioThumbsQueue.clear();
- m_modifiedClips.clear();
}
void ClipManager::checkAudioThumbs()
return list;
}
-void ClipManager::updatePreviewSettings()
-{
- for (int i = 0; i < m_clipList.count(); i++) {
- if (m_clipList.at(i)->clipType() == AV || m_clipList.at(i)->clipType() == VIDEO) {
- if (m_clipList.at(i)->producerProperty("meta.media.0.codec.name") && strcmp(m_clipList.at(i)->producerProperty("meta.media.0.codec.name"), "h264") == 0) {
- if (KdenliveSettings::dropbframes()) {
- m_clipList[i]->setProducerProperty("skip_loop_filter", "all");
- m_clipList[i]->setProducerProperty("skip_frame", "bidir");
- } else {
- m_clipList[i]->setProducerProperty("skip_loop_filter", "");
- m_clipList[i]->setProducerProperty("skip_frame", "");
- }
- }
- }
- }
-}
void ClipManager::clearUnusedProducers()
{