Fixed media looping (Patch by Ilkka Ollakka)