Only loop at video end.

In case of a short video that runs out of data but isn't ready to loop
yet.
Merge pull request #6735 from unknownbrackets/psmf-loop

Only loop psmf players at video end