mpv/stream
wm4 bcdb3c228e cache: fix stream_pts caching
Or rather, keep hacking it until it somehow works. The problem here was
that trying to avoid calling STREAM_CTRL_GET_CURRENT_TIME too often
didn't really work, so the cache sometimes returned incorrect times.

Also try to avoid the situation that looking up the time with an
advanced read position doesn't really work, as well as when trying to
look it up when EOF or cache end has been reached. In that case we have
read_filepos == max_filepos, which is "outside" of the cache, but
querying the time is still valid.

Should also fix the issue that demuxing streams with demux_lavf and if
STREAM_CTRL_GET_CURRENT_TIME is not supported messed up the reported
playback position.

This stuff is still not sane, but the way the player tries to fix the
playback time and how the DVD/BD stream inputs return the current time
based on the current byte position isn't sane to begin with. So, let's
leave it at bad hacks.

The two changes that touch s->eof are unrelated and basically of
cosmetic nature (separate commit would be too noisy.)
2013-06-18 02:19:15 +02:00
..
ai_alsa1x.c
ai_oss.c
asf_mmst_streaming.c
asf_mmst_streaming.h
asf_streaming.c stream: implement some HTTP specific options for stream_lavf 2013-01-24 17:45:13 +01:00
audio_in.c
audio_in.h
cache.c cache: fix stream_pts caching 2013-06-18 02:19:15 +02:00
cdd.h
cdinfo.c
cookies.c Fix some cppcheck / scan-build warnings 2013-05-06 23:11:11 +02:00
cookies.h stream: implement some HTTP specific options for stream_lavf 2013-01-24 17:45:13 +01:00
dvb_tune.c Fix some cppcheck / scan-build warnings 2013-05-06 23:11:11 +02:00
dvb_tune.h
dvbin.h
frequencies.c
frequencies.h
http.c Fix some cppcheck / scan-build warnings 2013-05-06 23:11:11 +02:00
http.h
network.c network: set default user-agent to MPlayer's 2013-02-26 01:55:52 +01:00
network.h stream: implement some HTTP specific options for stream_lavf 2013-01-24 17:45:13 +01:00
pvr.h
stream.c osdep: remove shmem wrapper 2013-06-18 02:19:15 +02:00
stream.h stream: remove stream_reset() 2013-06-16 22:05:09 +02:00
stream_avdevice.c
stream_bluray.c stream_bluray: report chapter times 2013-05-09 18:49:16 +02:00
stream_cdda.c stream: don't set EOF flag in stream implementations 2013-06-16 22:05:10 +02:00
stream_cddb.c Silence some compiler warnings 2013-05-21 00:04:27 +02:00
stream_dvb.c stream: don't set EOF flag in stream implementations 2013-06-16 22:05:10 +02:00
stream_dvd.c stream_dvd: remove some deadly insane code 2013-06-09 22:06:02 +02:00
stream_dvd.h
stream_dvd_common.c
stream_dvd_common.h
stream_file.c stream: don't set EOF flag in stream implementations 2013-06-16 22:05:10 +02:00
stream_ftp.c stream: don't set EOF flag in stream implementations 2013-06-16 22:05:10 +02:00
stream_lavf.c stream: don't set EOF flag in stream implementations 2013-06-16 22:05:10 +02:00
stream_mf.c
stream_null.c
stream_pvr.c
stream_radio.c cache: make the stream cache a proper stream that wraps other streams 2013-06-16 22:05:09 +02:00
stream_radio.h Remove BSD legacy TV/radio support (BT848 stuff) 2013-02-06 23:03:39 +01:00
stream_smb.c stream: don't set EOF flag in stream implementations 2013-06-16 22:05:10 +02:00
stream_tv.c
stream_udp.c stream: implement some HTTP specific options for stream_lavf 2013-01-24 17:45:13 +01:00
stream_vcd.c stream: move VCD specific stuff to stream_vcd 2013-06-09 22:06:03 +02:00
stream_vstream.c
tcp.c
tcp.h
tv.c Replace all calls to GetTimer()/GetTimerMS() 2013-05-26 16:44:20 +02:00
tv.h
tvi_def.h video: decouple internal pixel formats from FourCCs 2013-01-13 20:04:11 +01:00
tvi_dummy.c video: decouple internal pixel formats from FourCCs 2013-01-13 20:04:11 +01:00
tvi_v4l2.c Fix some cppcheck / scan-build warnings 2013-05-06 23:11:11 +02:00
udp.c
udp.h
url.c
url.h
vcd_read.h vcd_read: cleanup ifdefs 2013-04-04 14:03:22 +02:00
vcd_read_darwin.h
vcd_read_fbsd.h
vcd_read_win32.h vcd_read_win32.h: fix compilation on MinGW-w64 2013-04-06 00:00:16 +02:00