Timeline: Don't attempt to build peaks for dummy sources.

This commit is contained in:
Jonathan Moore Liles 2013-03-12 17:56:50 -07:00
parent 551ace4547
commit 525470392a
1 changed files with 3 additions and 0 deletions

View File

@ -439,6 +439,9 @@ Peaks::peakfile_ready ( void ) const
void void
Peaks::make_peaks_asynchronously ( void(*callback)(void*), void *userdata ) const Peaks::make_peaks_asynchronously ( void(*callback)(void*), void *userdata ) const
{ {
if ( _clip->dummy() )
return;
/* already working on it... */ /* already working on it... */
if( _first_block_pending || _mipmaps_pending ) if( _first_block_pending || _mipmaps_pending )
return; return;