don't use shared ptrs on streams

This commit is contained in:
itsmattkc
2020-12-16 13:46:19 +11:00
parent e12013e2fb
commit 6cb6407bd8
47 changed files with 192 additions and 212 deletions
+4 -4
View File
@@ -207,9 +207,9 @@ void Project::ColorConfigChanged()
QVector<Item*> footage = this->get_items_of_type(Item::kFootage);
foreach (Item* item, footage) {
foreach (StreamPtr s, static_cast<Footage*>(item)->streams()) {
foreach (Stream* s, static_cast<Footage*>(item)->streams()) {
if (s->type() == Stream::kVideo) {
std::static_pointer_cast<VideoStream>(s)->ColorConfigChanged();
static_cast<VideoStream*>(s)->ColorConfigChanged();
}
}
}
@@ -220,9 +220,9 @@ void Project::DefaultColorSpaceChanged()
QVector<Item*> footage = this->get_items_of_type(Item::kFootage);
foreach (Item* item, footage) {
foreach (StreamPtr s, static_cast<Footage*>(item)->streams()) {
foreach (Stream* s, static_cast<Footage*>(item)->streams()) {
if (s->type() == Stream::kVideo) {
std::static_pointer_cast<VideoStream>(s)->DefaultColorSpaceChanged();
static_cast<VideoStream*>(s)->DefaultColorSpaceChanged();
}
}
}