static void mlt_animation_clean( mlt_animation self ) { free( self->data ); self->data = NULL; while ( self->nodes ) mlt_animation_drop( self, self->nodes ); }
int mlt_animation_remove( mlt_animation self, int position ) { int error = 1; animation_node node = self->nodes; while ( node && position != node->item.frame ) node = node->next; if ( node && position == node->item.frame ) error = mlt_animation_drop( self, node ); return error; }