Skip to content

Commit

Permalink
reduce the amount of service caching
Browse files Browse the repository at this point in the history
  • Loading branch information
ddennedy committed Oct 30, 2020
1 parent d8b4746 commit 5086863
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/framework/mlt_multitrack.c
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,8 @@ static void resize_service_caches( mlt_multitrack self )
for ( i = 0; i < mlt_properties_count(caches); ++i )
{
mlt_cache cache = mlt_properties_get_data_at( caches, i, NULL );
if ( self->count * 3 > mlt_cache_get_size(cache) )
mlt_cache_set_size( cache, self->count * 3 );
if ( self->count * 2 > mlt_cache_get_size(cache) )
mlt_cache_set_size( cache, self->count * 2 );
}
}
}
Expand Down

0 comments on commit 5086863

Please sign in to comment.