summaryrefslogtreecommitdiffstats
path: root/mpvcore/mplayer.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-09-07 20:19:57 +0200
committerwm4 <wm4@nowhere>2013-09-07 20:34:49 +0200
commitc4b935adf74aa8d08030df89554f32d054d376da (patch)
treefbb37ea6ce9dcf65956d715fc17a7e6ac47b0317 /mpvcore/mplayer.c
parent8894a4b0d2b38781d9ab110a18e27fef99d956f1 (diff)
downloadmpv-c4b935adf74aa8d08030df89554f32d054d376da.tar.bz2
mpv-c4b935adf74aa8d08030df89554f32d054d376da.tar.xz
mplayer: remove unused mp_add_subtitles() parameter
Diffstat (limited to 'mpvcore/mplayer.c')
-rw-r--r--mpvcore/mplayer.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mpvcore/mplayer.c b/mpvcore/mplayer.c
index c6eff97338..d811bd8207 100644
--- a/mpvcore/mplayer.c
+++ b/mpvcore/mplayer.c
@@ -3951,13 +3951,13 @@ static void open_subtitles_from_options(struct MPContext *mpctx)
// check .sub
if (mpctx->opts->sub_name) {
for (int i = 0; mpctx->opts->sub_name[i] != NULL; ++i)
- mp_add_subtitles(mpctx, mpctx->opts->sub_name[i], 0);
+ mp_add_subtitles(mpctx, mpctx->opts->sub_name[i]);
}
if (mpctx->opts->sub_auto) { // auto load sub file ...
char **tmp = find_text_subtitles(mpctx->opts, mpctx->filename);
int nsub = MP_TALLOC_ELEMS(tmp);
for (int i = 0; i < nsub; i++) {
- struct track *track = mp_add_subtitles(mpctx, tmp[i], 1);
+ struct track *track = mp_add_subtitles(mpctx, tmp[i]);
if (track)
track->auto_loaded = true;
}
@@ -4025,7 +4025,7 @@ static void open_audiofiles_from_options(struct MPContext *mpctx)
opts->audio_stream_cache, STREAM_AUDIO);
}
-struct track *mp_add_subtitles(struct MPContext *mpctx, char *filename, int noerr)
+struct track *mp_add_subtitles(struct MPContext *mpctx, char *filename)
{
struct MPOpts *opts = mpctx->opts;
return open_external_file(mpctx, filename, opts->sub_demuxer_name, 0,