The good news is that, using the new code, I don't get the parse error.
The bad news is I still have the same issues - the BBCode for a linked video thumb still calls out for the mythical "mm-video.gif" that doesn't exist, and the linked thumb for an image is still blank - just the URL tags.
For what it's worth, you seem to have the same problem I'm trying to fix ... check the linked thumbnail code in the test video below.
test video - PhotoPost Photo Gallery
Software ... it's a process ...