mpv/common
Guido Cella e1f9444d4d playlist: remove unused code to track redirects
It turns out that the code to track redirects (playlists and
directories) never worked correctly, only the last redirect is
remembered and num_redirects is never greater than 1.

You can see this by doing quit-watch-later with the old watch later
system, before dbf244fd2f, on a m3u playlist of files and a m3u playlist
of directories. Only in the first case a redirect entry for the m3u file
is created, because in the second case the m3u redirect is replaced by
the directory one.

If you did mpv --directory-mode=lazy /foo it did create redirect entries
for all subdirectories e.g. /foo/bar, /foo/bar/baz, /foo/bar/baz/qux,
this made it seem like it worked correctly, but actually
/foo/bar/bar/qux was the only redirect entry and thus it was considered
as the first redirect, and mpv created redirect entries for each segment
of the first redirect only.

In the previous commit dbf244fd2f, rather than figuring out how to fix
the code to track redirects, and since creating redirect entries for
multiple redirects is overkill, I just used the new playlist-path
property which does the same thing but only for the last redirect.

By replacing the only other use of the old redirect code with
playlist-path, we can remove it.
2023-08-28 18:31:17 +00:00
..
av_common.c common/av_common: clean up mp_lavc_set_extradata 2023-03-14 23:59:47 +02:00
av_common.h common/av_common: clean up mp_lavc_set_extradata 2023-03-14 23:59:47 +02:00
av_log.c
av_log.h
codecs.c
codecs.h
common.c
common.h
encode.h options: transition options from OPT_FLAG to OPT_BOOL 2023-02-21 17:15:17 +00:00
encode_lavc.c encode_lavc: fix leak of codecpar 2023-07-26 11:26:36 +02:00
encode_lavc.h
global.h path: simplify "cache" and "state" fallback 2023-05-21 20:11:24 +02:00
meson.build build: remove version.py 2023-08-02 18:51:13 +00:00
msg.c msg: print MSGL_WARN and higher error messages to stderr 2023-07-24 22:48:30 +02:00
msg.h
msg_control.h
playlist.c playlist: remove unused code to track redirects 2023-08-28 18:31:17 +00:00
playlist.h playlist: remove unused code to track redirects 2023-08-28 18:31:17 +00:00
recorder.c
recorder.h
stats.c
stats.h player, stats: more silly debug stuff 2020-04-10 00:55:39 +02:00
tags.c
tags.h
version.c version: move NO_BUILD_TIMESTAMPS check to version.h.in 2023-08-02 18:51:13 +00:00
version.h.in version: move NO_BUILD_TIMESTAMPS check to version.h.in 2023-08-02 18:51:13 +00:00