Fix for deadlock when seek fails

Now it tries with the next frame until EOF.