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:
parent
b629e4447d
commit
db68e2842e
1 changed files with 7 additions and 4 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue