mirror of
https://github.com/mpv-player/mpv
synced 2024-12-27 01:22:30 +00:00
command: deprecate shared-script-properties
user-data is simply better.
This commit is contained in:
parent
c0c595b588
commit
1d00aee8e1
@ -92,6 +92,7 @@ Interface changes
|
|||||||
- rename `--cdrom-device` to `--cdda-device`
|
- rename `--cdrom-device` to `--cdda-device`
|
||||||
- remove `--scale-cutoff`, `--cscale-cutoff`, `--dscale-cutoff`, `--tscale-cutoff`
|
- remove `--scale-cutoff`, `--cscale-cutoff`, `--dscale-cutoff`, `--tscale-cutoff`
|
||||||
- remove `--scaler-lut-size`
|
- remove `--scaler-lut-size`
|
||||||
|
- deprecate shared-script-properties (user-data is a replacement)
|
||||||
--- mpv 0.36.0 ---
|
--- mpv 0.36.0 ---
|
||||||
- add `--target-contrast`
|
- add `--target-contrast`
|
||||||
- Target luminance value is now also applied when ICC profile is used.
|
- Target luminance value is now also applied when ICC profile is used.
|
||||||
|
@ -3617,6 +3617,8 @@ static int mp_property_script_props(void *ctx, struct m_property *prop,
|
|||||||
{
|
{
|
||||||
MPContext *mpctx = ctx;
|
MPContext *mpctx = ctx;
|
||||||
struct command_ctx *cmd = mpctx->command_ctx;
|
struct command_ctx *cmd = mpctx->command_ctx;
|
||||||
|
MP_WARN(mpctx, "The shared-script-properties property is deprecated and will "
|
||||||
|
"be removed in the future. Use the user-data property instead.\n");
|
||||||
switch (action) {
|
switch (action) {
|
||||||
case M_PROPERTY_GET_TYPE:
|
case M_PROPERTY_GET_TYPE:
|
||||||
*(struct m_option *)arg = script_props_type;
|
*(struct m_option *)arg = script_props_type;
|
||||||
|
Loading…
Reference in New Issue
Block a user