1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-29 02:22:19 +00:00
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 common/av_log: move general FFmpeg version before library versions 2022-11-15 21:41:22 +02:00
av_log.h player: rearrange libav* library check 2020-03-08 19:38:10 +01:00
codecs.c
codecs.h
common.c common: add helper for subtracting rectangles 2020-05-22 14:17:46 +02:00
common.h player: add video-sync=display-tempo 2023-01-09 15:17:09 +00:00
encode_lavc.c encode_lavc: fix leak of codecpar 2023-07-26 11:26:36 +02:00
encode_lavc.h encode_lavc: replace deprecated av_init_packet() 2022-01-10 22:56:52 +01:00
encode.h options: transition options from OPT_FLAG to OPT_BOOL 2023-02-21 17:15:17 +00:00
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_control.h player: add --term-title option 2020-05-25 20:39:37 +02:00
msg.c msg: print MSGL_WARN and higher error messages to stderr 2023-07-24 22:48:30 +02:00
msg.h msg: add function to reduce log level 2020-05-10 16:40:26 +02:00
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 ffmpeg: update to handle deprecation of av_init_packet 2022-12-03 14:44:18 -08:00
recorder.h recorder: add support for attachments (fonts) 2021-07-08 12:44:06 +03:00
stats.c build: add meson build support 2021-11-14 19:13:10 +00:00
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