X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fframework%2Fmlt_cache.c;h=0ab2456b177866ac6c177127dbb20d029f401630;hb=42020f68a28510095e3fe22af69d0bc6c4d272b5;hp=19ac51d8b4aa3df6319d6d4a9b9711131b8dcf4b;hpb=9b64e669afff2b5212f0002702a4d58e3239d25c;p=mlt diff --git a/src/framework/mlt_cache.c b/src/framework/mlt_cache.c index 19ac51d8..0ab2456b 100644 --- a/src/framework/mlt_cache.c +++ b/src/framework/mlt_cache.c @@ -490,7 +490,7 @@ static mlt_frame* shuffle_get_frame( mlt_cache cache, mlt_position position ) while ( i-- && !hit ) { mlt_frame *o = (mlt_frame*) &cache->current[ i ]; - if ( mlt_frame_get_position( *o ) == position ) + if ( mlt_frame_original_position( *o ) == position ) hit = o; } // if there was no hit, we will not be shuffling out an entry @@ -507,7 +507,7 @@ static mlt_frame* shuffle_get_frame( mlt_cache cache, mlt_position position ) { mlt_frame *o = (mlt_frame*) &cache->current[ i ]; - if ( !hit && mlt_frame_get_position( *o ) == position ) + if ( !hit && mlt_frame_original_position( *o ) == position ) { hit = o; } @@ -536,7 +536,7 @@ static mlt_frame* shuffle_get_frame( mlt_cache cache, mlt_position position ) void mlt_cache_put_frame( mlt_cache cache, mlt_frame frame ) { pthread_mutex_lock( &cache->mutex ); - mlt_frame *hit = shuffle_get_frame( cache, mlt_frame_get_position( frame ) ); + mlt_frame *hit = shuffle_get_frame( cache, mlt_frame_original_position( frame ) ); mlt_frame *alt = (mlt_frame*) ( cache->current == cache->A ? cache->B : cache->A ); // add the frame to the cache