1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-26 17:12:36 +00:00
mpv/mpvcore
wm4 3bb217d5e9 mplayer: allow resuming from playlist
This includes the case of passing multiple files to command line
(internally this is the same as loading a playlist).

Resuming works by finding the first playlist entry that can be resumed.

Alternative implementations would be possible, such as hashing the
playlist contents. But this implementation is simpler, and doesn't have
the disadvantage that changes to the playlist (like appending entries)
will throw away the resume point.

This makes loading large playlists a bit slower, because it has to look
into ~/.mpv/watch_later/ for every entry. Loading a 15000 entries
playlist now increases from 150ms to 400ms. Considering you rarely load
playlists this big with mpv (because it's impractical considering the
terminal and non-GUI nature of the player), this is probably ok.
2013-09-04 16:15:09 +02:00
..
input input: unlock playloop thread during select 2013-09-01 22:48:09 +02:00
timeline core: add a playlist demuxer 2013-08-26 10:09:45 +02:00
asxparser.c core: add a playlist demuxer 2013-08-26 10:09:45 +02:00
asxparser.h
av_common.c
av_common.h
av_log.c
av_log.h
av_opts.c
av_opts.h
bstr.c bstr: make UTF-8 check stricter 2013-08-15 23:40:03 +02:00
bstr.h bstr: add UTF-8 validation and sanitation functions 2013-08-15 23:40:02 +02:00
charset_conv.c sub: don't print detected charset if it's UTF-8 2013-08-15 23:40:04 +02:00
charset_conv.h sub: don't print detected charset if it's UTF-8 2013-08-15 23:40:04 +02:00
codecs.c
codecs.h
command.c mplayer: allow resuming from playlist 2013-09-04 16:15:09 +02:00
command.h
cpudetect.c
cpudetect.h
encode_lavc.c
encode_lavc.h
encode.h
m_config.c m_option: rename struct member named "new" 2013-08-19 13:03:08 +02:00
m_config.h
m_option.c audio: make internal audio format 0 an invalid format 2013-08-26 10:09:41 +02:00
m_option.h mplayer: start track IDs from 1 rather than 0 2013-08-21 18:32:42 +02:00
m_property.c
m_property.h
mp_common.c
mp_common.h
mp_core.h mplayer: allow resuming from playlist 2013-09-04 16:15:09 +02:00
mp_memory_barrier.h
mp_msg.c
mp_msg.h Some more mp_msg conversions 2013-08-23 23:30:09 +02:00
mp_osd.h
mp_ring.c
mp_ring.h
mp_talloc.h
mplayer.c mplayer: allow resuming from playlist 2013-09-04 16:15:09 +02:00
mpv_global.h
options.c video: add unscaled mode with --video-unscaled 2013-09-01 03:46:28 +02:00
options.h video: add unscaled mode with --video-unscaled 2013-09-01 03:46:28 +02:00
parser-cfg.c
parser-cfg.h
parser-mpcmd.c core: add a playlist demuxer 2013-08-26 10:09:45 +02:00
parser-mpcmd.h
path.c path: add a common mp_is_url() function 2013-09-04 16:15:08 +02:00
path.h path: add a common mp_is_url() function 2013-09-04 16:15:08 +02:00
playlist_parser.c demux_playlist: port ini reference playlist parser 2013-08-28 23:08:10 +02:00
playlist_parser.h core: add a playlist demuxer 2013-08-26 10:09:45 +02:00
playlist.c path: add a common mp_is_url() function 2013-09-04 16:15:08 +02:00
playlist.h
resolve_quvi9.c
resolve_quvi.c
resolve.h
screenshot.c
screenshot.h
version.c