mirror of
https://github.com/mpv-player/mpv
synced 2025-02-26 18:32:08 +00:00
options: rename --media-title option
Conflicts with the property.
This commit is contained in:
parent
d26803cba0
commit
450af05338
@ -20,6 +20,7 @@ Interface changes
|
|||||||
::
|
::
|
||||||
|
|
||||||
--- mpv 0.10.0 will be released ---
|
--- mpv 0.10.0 will be released ---
|
||||||
|
- deprecate --media-title, replaced with --force-media-title
|
||||||
- deprecate "length" property, replaced with "duration"
|
- deprecate "length" property, replaced with "duration"
|
||||||
- change volume property:
|
- change volume property:
|
||||||
- the value 100 is now always "unchanged volume" - with softvol, the
|
- the value 100 is now always "unchanged volume" - with softvol, the
|
||||||
|
@ -402,7 +402,7 @@ const m_option_t mp_opts[] = {
|
|||||||
// vo name (X classname) and window title strings
|
// vo name (X classname) and window title strings
|
||||||
OPT_STRING("x11-name", vo.winname, 0),
|
OPT_STRING("x11-name", vo.winname, 0),
|
||||||
OPT_STRING("title", wintitle, 0),
|
OPT_STRING("title", wintitle, 0),
|
||||||
OPT_STRING("media-title", media_title, 0),
|
OPT_STRING("force-media-title", media_title, 0),
|
||||||
// set aspect ratio of monitor - useful for 16:9 TV-out
|
// set aspect ratio of monitor - useful for 16:9 TV-out
|
||||||
OPT_FLOATRANGE("monitoraspect", vo.force_monitor_aspect, 0, 0.0, 9.0),
|
OPT_FLOATRANGE("monitoraspect", vo.force_monitor_aspect, 0, 0.0, 9.0),
|
||||||
OPT_FLOATRANGE("monitorpixelaspect", vo.monitor_pixel_aspect, 0, 0.2, 9.0),
|
OPT_FLOATRANGE("monitorpixelaspect", vo.monitor_pixel_aspect, 0, 0.2, 9.0),
|
||||||
@ -632,6 +632,7 @@ const m_option_t mp_opts[] = {
|
|||||||
OPT_REPLACED("mkv-subtitle-preroll", "demuxer-mkv-subtitle-preroll"),
|
OPT_REPLACED("mkv-subtitle-preroll", "demuxer-mkv-subtitle-preroll"),
|
||||||
OPT_REPLACED("dtshd", "ad-spdif-dtshd"),
|
OPT_REPLACED("dtshd", "ad-spdif-dtshd"),
|
||||||
OPT_REPLACED("ass-use-margins", "sub-use-margins"),
|
OPT_REPLACED("ass-use-margins", "sub-use-margins"),
|
||||||
|
OPT_REPLACED("media-title", "force-media-title"),
|
||||||
|
|
||||||
{0}
|
{0}
|
||||||
};
|
};
|
||||||
|
@ -176,7 +176,7 @@ mp.add_hook("on_load", 10, function ()
|
|||||||
|
|
||||||
mp.set_property("stream-open-filename", playlist)
|
mp.set_property("stream-open-filename", playlist)
|
||||||
if not (json.title == nil) then
|
if not (json.title == nil) then
|
||||||
mp.set_property("file-local-options/media-title", json.title)
|
mp.set_property("file-local-options/force-media-title", json.title)
|
||||||
end
|
end
|
||||||
|
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user