summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2012-11-14 13:46:40 +0100
committerwm4 <wm4@nowhere>2012-11-14 13:46:40 +0100
commit50db7b7f75f2e70b36b1e924bd73cdedc424f2af (patch)
treeafd8301fd9f1ad668ede408de40f75f43b8651c4 /etc
parent8827a4090eb743ffbfeb8e1f1b0480febf48d9fb (diff)
downloadmpv-50db7b7f75f2e70b36b1e924bd73cdedc424f2af.tar.bz2
mpv-50db7b7f75f2e70b36b1e924bd73cdedc424f2af.tar.xz
mplayer: do not freeze when trying to loop an unseekable file
Using --loop=inf on an unseekable file would put mpv (and all other mplayers as well) into an endless loop, trying to seek to the start of the file on each playback loop iteration. When the seek fails, playback simply remains in the at-end-of-file state, and tries to issue a new seek command for looping. Fix by checking if the seek command fails, and abort looping in this case. For that, queue_seek() is replaced with seek(). Due to the circumstances, these two calls happen to be equal in this case: the seek is absolute (i.e. no seek coalescing done), and the execution of queued seeks is right after the loop code anyway.
Diffstat (limited to 'etc')
0 files changed, 0 insertions, 0 deletions