Skip to content

Commit ed6022d

Browse files
committed
Move filename check before checking if file exists
1 parent 789a0c8 commit ed6022d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/modules/qt/qimage_wrapper.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -483,10 +483,10 @@ int load_sequence_sprintf(producer_qimage self, mlt_properties properties, const
483483
#if QT_VERSION >= QT_VERSION_CHECK(5, 5, 0)
484484
for (int gap = 0; gap < 100;) {
485485
QString full = QString::asprintf(filename, i++);
486+
if (full == filename) {
487+
break;
488+
}
486489
if (QFile::exists(full)) {
487-
if (full == filename) {
488-
break;
489-
}
490490
QString key = QString::asprintf("%d", keyvalue++);
491491
mlt_properties_set(self->filenames,
492492
key.toLatin1().constData(),

0 commit comments

Comments
 (0)