From 57f77b65e3a82553823180daeaba0d6c08b4e883 Mon Sep 17 00:00:00 2001 From: Dan Dennedy Date: Sun, 2 Jun 2013 13:57:35 -0700 Subject: [PATCH] Add missing lock in mlt_property:refresh_animation (coverity-1026788). --- src/framework/mlt_property.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/framework/mlt_property.c b/src/framework/mlt_property.c index 801656f5..8339c81b 100644 --- a/src/framework/mlt_property.c +++ b/src/framework/mlt_property.c @@ -1125,9 +1125,11 @@ static void refresh_animation( mlt_property self, double fps, locale_t locale, i else { mlt_animation_set_length( self->animation, length ); + pthread_mutex_lock( &self->mutex ); self->types |= mlt_prop_data; self->data = self->animation; self->serialiser = (mlt_serialiser) mlt_animation_serialize; + pthread_mutex_unlock( &self->mutex ); } } else if ( self->prop_string ) -- 2.39.2