1
mirror of https://github.com/mpv-player/mpv synced 2024-11-07 01:47:00 +01:00
mpv/core
wm4 50db7b7f75 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.
2012-11-14 13:46:40 +01:00
..
input Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
timeline clang: fix all warnings except deprecations 2012-11-13 22:19:18 +01:00
asxparser.c Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
asxparser.h
av_log.c Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
av_log.h
av_opts.c
av_opts.h
bstr.c Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
bstr.h
cfg-mplayer.h options: make --loop always per-file 2012-11-14 13:28:16 +01:00
codec-cfg.c Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
codec-cfg.h
command.c Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
command.h
cpudetect.c Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
cpudetect.h Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
defaultopts.c Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
defaultopts.h
encode_lavc.c Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
encode_lavc.h Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
encode.h
m_config.c Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
m_config.h Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
m_option.c Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
m_option.h Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
m_property.c Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
m_property.h
m_struct.c Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
m_struct.h Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
mp_common.c Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
mp_common.h mp_common.h: split parts into mp_talloc.h and compiler.h 2012-11-12 20:08:57 +01:00
mp_core.h Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
mp_fifo.c Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
mp_fifo.h Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
mp_msg.c build: remove doc/locale language auto-detection, simplify 2012-11-14 11:26:43 +01:00
mp_msg.h Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
mp_osd.h
mp_talloc.h mp_common.h: split parts into mp_talloc.h and compiler.h 2012-11-12 20:08:57 +01:00
mpc_info.h
mplayer.c mplayer: do not freeze when trying to loop an unseekable file 2012-11-14 13:46:40 +01:00
mplayer.h Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
options.h
parser-cfg.c Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
parser-cfg.h
parser-mpcmd.c Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
parser-mpcmd.h
path.c Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
path.h Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
playlist_parser.c Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
playlist_parser.h
playlist.c Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
playlist.h Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
quvi.c Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
screenshot.c Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
screenshot.h
subopt-helper.c Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
subopt-helper.h
version.c