Send image directly if no thumbnail available

SVN revision: 2473
This commit is contained in:
2012-07-13 11:07:15 +00:00
parent c4ac44b9d4
commit da3530ae80
+5
View File
@@ -23486,6 +23486,11 @@ int get_thumb_name(const char *file_name, char *thumb_name, int size, int index)
strlcpy(thumb_name, str, size);
return 1;
}
strlcpy(str, file_name, sizeof(str));
if (file_exist(str)) {
strlcpy(thumb_name, str, size);
return 1;
}
}
return 0;