diff options
author | wm4 <wm4@nowhere> | 2015-02-20 21:21:14 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-02-20 21:21:14 +0100 |
commit | 6aa6778ac46672dd237acc86856353d133917f06 (patch) | |
tree | d7e19e4c35ea99193b826fcd78e975c1bc376f62 /demux/demux_cue.c | |
parent | 6c1355be967751b194504ed73b053846fbae5fa9 (diff) | |
download | mpv-6aa6778ac46672dd237acc86856353d133917f06.tar.bz2 mpv-6aa6778ac46672dd237acc86856353d133917f06.tar.xz |
demux: change demux_open() signature
Fold the relatively obscure force_format parameter into demuxer_params.
Diffstat (limited to 'demux/demux_cue.c')
-rw-r--r-- | demux/demux_cue.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/demux/demux_cue.c b/demux/demux_cue.c index db70586b16..93c842dc0d 100644 --- a/demux/demux_cue.c +++ b/demux/demux_cue.c @@ -195,7 +195,7 @@ static bool try_open(struct timeline *tl, char *filename) struct stream *s = stream_open(filename, tl->global); if (!s) return false; - struct demuxer *d = demux_open(s, NULL, NULL, tl->global); + struct demuxer *d = demux_open(s, NULL, tl->global); // Since .bin files are raw PCM data with no headers, we have to explicitly // open them. Also, try to avoid to open files that are most likely not .bin // files, as that would only play noise. Checking the file extension is @@ -204,7 +204,8 @@ static bool try_open(struct timeline *tl, char *filename) // CD sector size (2352 bytes) if (!d && bstr_case_endswith(bfilename, bstr0(".bin"))) { MP_WARN(tl, "CUE: Opening as BIN file!\n"); - d = demux_open(s, "rawaudio", NULL, tl->global); + struct demuxer_params p = {.force_format = "rawaudio"}; + d = demux_open(s, &p, tl->global); } if (d) { add_source(tl, d); |