Fix Bug 947454 - Loop plugin will properly trigger loops when plugin end...

... === duration

https://bugzilla.mozilla.org/show_bug.cgi?id=947454