caorongjin/liferay-portal — pull request #36 by ivicac (2012-03-22 12:45:29+00:00)
Title: LPS-25274 - Editing the title of description of an image or video will regenerated all the thumbnails and video previews

Hi Alexander,
In my previous previous pull request it was my mistake regarding to checkInFileEntry method and the following scenario:

1. Checkout
2. Change title
3. Change file object
4. Checkin

I have always tested waiting for the converting process to finish in step 3 before going to step 4.
Now I have added additional code in checkInFileEntry method that checks if the version for checkin is currently processed(there is some conversion process of uploaded file) and in that case I skip copying from the last version.