]> git.sesse.net Git - mlt/blobdiff - src/framework/mlt_property.c
Add missing lock in mlt_property:refresh_animation (coverity-1026788).
[mlt] / src / framework / mlt_property.c
index 801656f5b4b61b06ee653c7039273836b8626588..8339c81bb6c52dfa287df67d0fa5893a28195393 100644 (file)
@@ -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 )