mpv/demux
wm4 5a5b219853 demux: fix opening pipes with demux_lavf
We told the demuxer that a pipe (if stream cache is enabled) is
seekable. This is because the stream cache is technically seekable, it's
just that seeking may fail at runtime if a non-cached byte range is
requested.

This caused libavformat to issue seeks on initialization (at least when
piping mp4 youtube videos). Initialization failed completely after
spamming tons of error messages.

So, if an unseekable stream is cached, tell the demuxer that the file is
not seekable. This gets reversed later (when printing a message about
caching an unseekable stream), so the user can still try his luck by
issuing a seek command. The important part is that libavformat
initialization will not take code paths that will unnecessarily seek for
whatever reasons.

CC: @mpv-player/stable: regression from 0.3.x

Conflicts:
	demux/demux.c
2014-07-20 21:56:46 +02:00
..
codec_tags.c demux: add "BIKb" FourCC 2014-04-08 22:59:53 +02:00
codec_tags.h demux: remove gsh field from sh_audio/sh_video/sh_sub 2013-11-23 21:37:56 +01:00
demux.c demux: fix opening pipes with demux_lavf 2014-07-20 21:56:46 +02:00
demux.h demux: simplify packet resizing 2014-06-13 02:02:30 +02:00
demux_cue.c Split mpvcore/ into common/, misc/, bstr/ 2013-12-17 02:39:45 +01:00
demux_edl.c timeline: reject mplayer2 EDL files, change EDL header 2013-11-21 15:59:00 +01:00
demux_lavf.c demux_lavf: reverse rotation direction with new API 2014-07-18 10:31:58 +02:00
demux_libass.c demux_libass: change how external ASS subtitles are loaded 2014-03-15 22:17:51 +01:00
demux_mf.c demux_mf: remove global option variables 2014-06-11 00:39:13 +02:00
demux_mkv.c demux_mkv: minor improvement to overflow check 2014-07-05 00:25:38 +02:00
demux_playlist.c Add more const 2014-06-11 00:39:14 +02:00
demux_raw.c demux: simplify packet resizing 2014-06-13 02:02:30 +02:00
demux_subreader.c demux_subreader: remove support for some subtitle formats 2014-05-19 01:40:41 +02:00
ebml.c demux_mkv: add some overflow checks etc. 2014-07-05 00:25:19 +02:00
ebml.h ebml: remove length parameters from read functions 2014-01-14 17:38:51 +01:00
matroska.h demux_mkv: add S_DVBSUB 2014-06-17 22:44:27 +02:00
mf.c demux_mf: remove global option variables 2014-06-11 00:39:13 +02:00
mf.h demux: mp_msg conversions 2013-12-21 21:43:16 +01:00
ms_hdr.h demux: rename Windows symbols 2013-11-02 15:14:12 +01:00
packet.h demux: export dts from demux_lavf, use it for avi 2013-11-25 23:13:01 +01:00
stheader.h audio: rename i_bps to 'bitrate' to avoid confusion 2014-05-28 21:37:50 +02:00