Skip to content

Commit 70b8b22

Browse files
guidocellaDudemanguy
authored andcommitted
command: remove the deprecated time-start property
This has been deprecated for 11 years since 70df160 so remove it. All it does is return 0.
1 parent 4e6196e commit 70b8b22

3 files changed

Lines changed: 1 addition & 13 deletions

File tree

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
remove the deprecated `time-start` property

DOCS/man/input.rst

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2342,11 +2342,6 @@ Property list
23422342
``time-pos/full``
23432343
``time-pos`` with milliseconds.
23442344

2345-
``time-start``
2346-
Deprecated. Always returns 0. Before mpv 0.14, this used to return the start
2347-
time of the file (could affect e.g. transport streams). See
2348-
``--rebase-start-time`` option.
2349-
23502345
``time-remaining``
23512346
Remaining length of the file in seconds. Note that the file duration is not
23522347
always exactly known, so this is an estimate.

player/command.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -852,13 +852,6 @@ static int mp_property_percent_pos(void *ctx, struct m_property *prop,
852852
return M_PROPERTY_NOT_IMPLEMENTED;
853853
}
854854

855-
static int mp_property_time_start(void *ctx, struct m_property *prop,
856-
int action, void *arg)
857-
{
858-
// minor backwards-compat.
859-
return property_time(action, arg, 0);
860-
}
861-
862855
/// Current position in seconds (RW)
863856
static int mp_property_time_pos(void *ctx, struct m_property *prop,
864857
int action, void *arg)
@@ -4456,7 +4449,6 @@ static const struct m_property mp_properties_base[] = {
44564449
{"frame-drop-count", mp_property_frame_drop_vo},
44574450
{"vo-delayed-frame-count", mp_property_vo_delayed_frame_count},
44584451
{"percent-pos", mp_property_percent_pos},
4459-
{"time-start", mp_property_time_start},
44604452
{"time-pos", mp_property_time_pos},
44614453
{"time-remaining", mp_property_remaining},
44624454
{"audio-pts", mp_property_audio_pts},

0 commit comments

Comments
 (0)