]> git.sesse.net Git - vlc/commit
avformat mux: Propagate seekable status into avformat.
authorSteinar H. Gunderson <steinar+vlc@gunderson.no>
Fri, 16 Aug 2013 14:42:11 +0000 (16:42 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Sun, 25 Aug 2013 10:10:41 +0000 (13:10 +0300)
commit442b1df3e5cac1e54a2c1353896faa61b9765c32
tree6513922fd1460a6b65095d9736eeafd2ee9dd0af
parentddb88bf1a7b0396404d394726499af6eebba6c37
avformat mux: Propagate seekable status into avformat.

Some muxes, in particular mkv/webm, behave very differently depending on
whether we say that the stream is seekable or not (by providing the IOSeek
function). It does not help that the seek function itself returns an error.

Thus, add a new access_out control called ACCESS_OUT_CAN_SEEK, set to true
for seekable files in the file output only, and propagate the status of that
into avformat at initialization time.

Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
modules/access_output/file.c
modules/demux/avformat/mux.c