summaryrefslogtreecommitdiffstats
path: root/player/loadfile.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2017-12-25 11:43:04 +0100
committerKevin Mitchell <kevmitch@gmail.com>2017-12-25 04:06:17 -0700
commit69ae23fdd1e39f4e7aa30082e36cc635d954bccf (patch)
tree2a1698c9be86ae82ea234eb6fb05eaa57b685101 /player/loadfile.c
parent31718c48ce4ceb9515fa678c01f45a5ec057f379 (diff)
downloadmpv-69ae23fdd1e39f4e7aa30082e36cc635d954bccf.tar.bz2
mpv-69ae23fdd1e39f4e7aa30082e36cc635d954bccf.tar.xz
options: drop some previously deprecated options
A release has been made, so drop options deprecated for that release. Also drop some options which have been deprecated a much longer time before. Also fix a typo in client-api-changes.rst.
Diffstat (limited to 'player/loadfile.c')
-rw-r--r--player/loadfile.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/player/loadfile.c b/player/loadfile.c
index d2e26c1ba4..ca782f88d8 100644
--- a/player/loadfile.c
+++ b/player/loadfile.c
@@ -360,11 +360,8 @@ struct track *select_default_track(struct MPContext *mpctx, int order,
{
struct MPOpts *opts = mpctx->opts;
int tid = opts->stream_id[order][type];
- int ffid = order == 0 ? opts->stream_id_ff[type] : -1;
char **langs = order == 0 ? opts->stream_lang[type] : NULL;
- if (ffid != -1)
- tid = -1; // prefer selecting ffid
- if (tid == -2 || ffid == -2)
+ if (tid == -2)
return NULL;
bool select_fallback = type == STREAM_VIDEO || type == STREAM_AUDIO;
struct track *pick = NULL;
@@ -374,8 +371,6 @@ struct track *select_default_track(struct MPContext *mpctx, int order,
continue;
if (track->user_tid == tid)
return track;
- if (track->ff_index == ffid)
- return track;
if (!pick || compare_track(track, pick, langs, mpctx->opts))
pick = track;
}