History

command: deprecate shared-script-properties

user-data is simply better.

Dudemanguy committed 3 years ago

Commit 1d00aee1 parent c0c595b2 files · +3 −0Browse files

Unified · Split

2 files
  1. DOCS/interface-changes.rst +1 −0
  2. player/command.c +2 −0
DOCS/interface-changes.rst+1−0
@@ -92,6 +92,7 @@ Interface changes · 91 unmodified lines
9292 - rename `--cdrom-device` to `--cdda-device`
9393 - remove `--scale-cutoff`, `--cscale-cutoff`, `--dscale-cutoff`, `--tscale-cutoff`
9494 - remove `--scaler-lut-size`
95+ - deprecate shared-script-properties (user-data is a replacement)
9596 --- mpv 0.36.0 ---
9697 - add `--target-contrast`
9798 - Target luminance value is now also applied when ICC profile is used.
player/command.c+2−0
@@ -3617,6 +3617,8 @@ static int mp_property_script_props(void *ctx, struct m_property *prop, · 3616 unmodified lines
36173617 {
36183618 MPContext *mpctx = ctx;
36193619 struct command_ctx *cmd = mpctx->command_ctx;
3620+ MP_WARN(mpctx, "The shared-script-properties property is deprecated and will "
3621+ "be removed in the future. Use the user-data property instead.\n");
36203622 switch (action) {
36213623 case M_PROPERTY_GET_TYPE:
36223624 *(struct m_option *)arg = script_props_type;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t