From 2bbed8013563e07e3fb5468c41f4d014b33fb887 Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 18 Jan 2016 17:42:34 +0100 Subject: [PATCH] demux: remove unused flag --- demux/demux.h | 1 - player/loadfile.c | 4 +--- 2 files changed, 1 insertion(+), 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: