1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-26 09:02:38 +00:00
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 Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
ai_oss.c Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
asf_mmst_streaming.c cache: simplify further 2012-12-03 21:08:51 +01:00
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 Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
audio_in.h
cache.c cache: fix stream_pts caching 2013-06-18 02:19:15 +02:00
cdd.h
cdinfo.c Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
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 stream/: delete base64_encode(), use libavutil av_base64_encode() 2010-12-16 05:16:50 +02:00
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_avdevice.c demux_lavf: add support for libavdevice 2012-12-03 21:08:51 +01:00
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_common.c Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
stream_dvd_common.h
stream_dvd.c stream_dvd: remove some deadly insane code 2013-06-09 22:06:02 +02:00
stream_dvd.h Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
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 Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
stream_null.c
stream_pvr.c Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
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 Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
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 stream, demux: replace off_t with int64_t 2012-11-20 18:00:15 +01:00
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
tcp.c Fix potential bugs and issues, general cleanups 2012-11-20 18:00:14 +01:00
tcp.h
tv.c Replace all calls to GetTimer()/GetTimerMS() 2013-05-26 16:44:20 +02:00
tv.h Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
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 Fix potential bugs and issues, general cleanups 2012-11-20 18:00:14 +01:00
udp.h
url.c Fix lots of bugs in mp_http URL handling 2013-01-10 14:11:26 +01:00
url.h stream: fix redirection for proxy URLs 2012-10-30 19:50:20 +01:00
vcd_read_darwin.h Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
vcd_read_fbsd.h Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
vcd_read_win32.h vcd_read_win32.h: fix compilation on MinGW-w64 2013-04-06 00:00:16 +02:00
vcd_read.h vcd_read: cleanup ifdefs 2013-04-04 14:03:22 +02:00