1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Avoid an assertion in juce demo app.

This commit is contained in:
jules 2013-09-03 15:06:15 +01:00
parent b629e4447d
commit db68e2842e

View file

@ -52,10 +52,13 @@ public:
void setFile (const File& file)
{
thumbnail.setSource (new FileInputSource (file));
startTime = 0;
endTime = thumbnail.getTotalLength();
startTimer (1000 / 40);
if (! file.isDirectory())
{
thumbnail.setSource (new FileInputSource (file));
startTime = 0;
endTime = thumbnail.getTotalLength();
startTimer (1000 / 40);
}
}
void setZoomFactor (double amount)