mirror of
https://github.com/mpv-player/mpv
synced 2024-10-22 08:51:57 +02:00
Disable automatic playlist parsing properly
The playlist code is unsafe to use with potentially hostile sources. It was disabled by default for local files but not for network streams. Make sure it is not automatically triggered for network streams either.
This commit is contained in:
parent
529d106627
commit
ae0f9e2658
@ -3158,6 +3158,11 @@ if (edl_output_filename) {
|
||||
#endif
|
||||
|
||||
if(mpctx->file_format == DEMUXER_TYPE_PLAYLIST) {
|
||||
mp_msg(MSGT_CPLAYER, MSGL_ERR, "\nThis looks like a playlist, but "
|
||||
"playlist support will not be used automatically.\n"
|
||||
"MPlayer's playlist code is unsafe and should only be used with "
|
||||
"trusted sources.\nPlayback will probably fail.\n\n");
|
||||
#if 0
|
||||
play_tree_t* entry;
|
||||
// Handle playlist
|
||||
current_module="handle_playlist";
|
||||
@ -3166,6 +3171,7 @@ if (edl_output_filename) {
|
||||
entry = parse_playtree(mpctx->stream, mpctx->mconfig, 0);
|
||||
mpctx->eof=playtree_add_playlist(mpctx, entry);
|
||||
goto goto_next_file;
|
||||
#endif
|
||||
}
|
||||
mpctx->stream->start_pos+=seek_to_byte;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user