diff options
author | wm4 <wm4@nowhere> | 2016-01-18 17:42:34 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-01-18 18:40:05 +0100 |
commit | 2bbed8013563e07e3fb5468c41f4d014b33fb887 (patch) | |
tree | f50c8f1fd5e08008a6e13cbe87ebc493d285d74a | |
parent | dfe630c5d185d196539bfee7eda569c139576767 (diff) | |
download | mpv-2bbed8013563e07e3fb5468c41f4d014b33fb887.tar.bz2 mpv-2bbed8013563e07e3fb5468c41f4d014b33fb887.tar.xz |
demux: remove unused flag
-rw-r--r-- | demux/demux.h | 1 | ||||
-rw-r--r-- | player/loadfile.c | 4 |
2 files changed, 1 insertions, 4 deletions
diff --git a/demux/demux.h b/demux/demux.h index d274be5ae7..7a24230cc8 100644 --- a/demux/demux.h +++ b/demux/demux.h @@ -160,7 +160,6 @@ struct demuxer_params { struct matroska_segment_uid *matroska_wanted_uids; int matroska_wanted_segment; bool *matroska_was_valid; - bool expect_subtitle; // -- demux_open_url() only int stream_flags; bool allow_capture; diff --git a/player/loadfile.c b/player/loadfile.c index aecdbf46de..7a33fd7478 100644 --- a/player/loadfile.c +++ b/player/loadfile.c @@ -693,9 +693,7 @@ struct track *mp_add_external_file(struct MPContext *mpctx, char *filename, if (strncmp(disp_filename, "memory://", 9) == 0) disp_filename = "memory://"; // avoid noise - struct demuxer_params params = { - .expect_subtitle = filter == STREAM_SUB, - }; + struct demuxer_params params = {0}; switch (filter) { case STREAM_SUB: |