From 6aa6778ac46672dd237acc86856353d133917f06 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 20 Feb 2015 21:21:14 +0100 Subject: demux: change demux_open() signature Fold the relatively obscure force_format parameter into demuxer_params. --- demux/demux_mkv_timeline.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'demux/demux_mkv_timeline.c') diff --git a/demux/demux_mkv_timeline.c b/demux/demux_mkv_timeline.c index 735678f7db..64d4583979 100644 --- a/demux/demux_mkv_timeline.c +++ b/demux/demux_mkv_timeline.c @@ -167,7 +167,7 @@ static int enable_cache(struct mpv_global *global, struct stream **stream, stream_enable_cache(stream, &opts->stream_cache); - *demuxer = demux_open(*stream, "mkv", params, global); + *demuxer = demux_open(*stream, params, global); if (!*demuxer) { talloc_free(filename); free_stream(*stream); @@ -197,6 +197,7 @@ static bool check_file_seg(struct tl_ctx *ctx, struct demuxer ***sources, { bool was_valid = false; struct demuxer_params params = { + .force_format = "mkv", .matroska_num_wanted_uids = *num_sources, .matroska_wanted_uids = *uids, .matroska_wanted_segment = segment, @@ -205,7 +206,7 @@ static bool check_file_seg(struct tl_ctx *ctx, struct demuxer ***sources, struct stream *s = stream_open(filename, ctx->global); if (!s) return false; - struct demuxer *d = demux_open(s, "mkv", ¶ms, ctx->global); + struct demuxer *d = demux_open(s, ¶ms, ctx->global); if (!d) { free_stream(s); -- cgit v1.2.3