mpv/stream
wm4 5bce4664be stream_cdda: fix bugs in chapter time retrieval
Looks like a bunch of off-by-one errors.

The track number was mistakenly offset by 1 - this shifted all chapters
by one, and make the first chapter start on the second track (so the
"chapter" property returned -1 in the first track since it was before
the first chapter).

Also, the calculation of the sector destination was messed up. This
comes from commit 32d818f0, where I apparently attempted to calculate
the position to one byte before the section, but unfortunately math
doesn't work this way and it was nonsense. Just drop this idea; while it
may help with seeking (probably...), it also returns slightly different
times. The user shall use hr-seeks if accurate seeking is required.

Hopefully fixes #1560.
2015-02-04 15:17:49 +01:00
..
ai_alsa1x.c
ai_oss.c Do not call strerror() 2014-11-26 21:21:56 +01:00
ai_sndio.c
audio_in.c Do not call strerror() 2014-11-26 21:21:56 +01:00
audio_in.h
cache.c cache: cache-position needs to be int64_t 2015-01-13 02:39:16 +01:00
cache_file.c
cookies.c
cookies.h
discnav.h dvd, bd: don't unnecessarily block on demuxer/stream all the time 2014-12-04 22:42:07 +01:00
dvb_tune.c dvb: uncrustify 2015-01-06 20:19:49 +01:00
dvb_tune.h stream_dvb: Also demux PMT if possible, reactivate TPID parsing. 2015-01-06 19:52:27 +01:00
dvbin.h dvb: uncrustify 2015-01-06 20:19:49 +01:00
frequencies.c
frequencies.h
rar.c
rar.h
stream.c stream: reject overly long URLs 2015-01-21 12:11:37 +01:00
stream.h command: add dummy get implementation for tv-channel property 2015-02-02 18:07:37 +01:00
stream_avdevice.c
stream_bluray.c
stream_cdda.c stream_cdda: fix bugs in chapter time retrieval 2015-02-04 15:17:49 +01:00
stream_dvb.c stream_dvb: silence bogus compiler warning 2015-01-19 17:58:37 +01:00
stream_dvd.c command, dvd: add property which returns list of DVD titles 2014-12-13 20:25:56 +01:00
stream_dvd_common.c
stream_dvd_common.h
stream_dvdnav.c dvd: try to improve seeking 2015-01-19 21:30:05 +01:00
stream_edl.c stream: always disable cache for pseudo-streams 2014-12-24 14:33:34 +01:00
stream_file.c Do not call strerror() 2014-11-26 21:21:56 +01:00
stream_lavf.c stream_lavf: escape disallowed characters in http URLs 2015-01-21 12:10:49 +01:00
stream_memory.c
stream_mf.c
stream_null.c
stream_pvr.c stream_pvr: uncrustify 2015-01-06 20:27:36 +01:00
stream_rar.c
stream_smb.c
stream_tv.c
tv.c
tv.h
tvi_def.h
tvi_dummy.c
tvi_v4l2.c Do not call strerror() 2014-11-26 21:21:56 +01:00