]> git.sur5r.net Git - minitube/blobdiff - src/video.cpp
Imported Upstream version 1.4.3
[minitube] / src / video.cpp
index df2c9fe8848bac9be9c651b90093e34348b1514a..545c29827d5078ba0fcbae1009a624cbcd35b1eb 100644 (file)
@@ -169,6 +169,7 @@ void  Video::gotVideoInfo(QByteArray data) {
     int previousIndex = 0;
     while (currentIndex >= 0) {
         previousIndex = currentIndex - 1;
+        if (previousIndex < 0) previousIndex = 0;
         int definitionCode = definitionCodes.at(previousIndex);
         if (urlMap.contains(definitionCode)) {
             qDebug() << "Found format" << definitionCode;