fixed last references to track as an integer

This commit is contained in:
itsmattkc
2019-04-03 23:59:36 +11:00
parent f3178ff071
commit 673bcc0bf7
7 changed files with 31 additions and 11 deletions
+2 -2
View File
@@ -370,7 +370,7 @@ GLuint olive::rendering::compose_sequence(ComposeSequenceParams &params) {
if (got_mutex && c->IsOpen()) {
// if clip is a video clip
if (c->track() < 0) {
if (c->type() == Track::kTypeVideo) {
// textureID variable contains texture to be drawn on screen at the end
GLuint textureID = 0;
@@ -750,7 +750,7 @@ GLuint olive::rendering::compose_sequence(ComposeSequenceParams &params) {
// == END FINAL DRAW ON SEQUENCE BUFFER ==
}
}
} else {
} else if (c->type() == Track::kTypeAudio) {
if (c->media() != nullptr && c->media()->get_type() == MEDIA_TYPE_SEQUENCE) {
params.nests.append(c);
compose_sequence(params);