]> git.sesse.net Git - mlt/commitdiff
Add missing lock in mlt_property:refresh_animation (coverity-1026788).
authorDan Dennedy <dan@dennedy.org>
Sun, 2 Jun 2013 20:57:35 +0000 (13:57 -0700)
committerDan Dennedy <dan@dennedy.org>
Sun, 2 Jun 2013 21:54:41 +0000 (14:54 -0700)
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 )