1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-25 00:02:13 +00:00
mpv/stream
Ricardo Constantino fb6481ecb5
stream_bluray: use proper 0-based idx
Even though the title list code was copied from FFmpeg/libbluray,
I didn't check that mpv used 0-based title indexing.

$ mpv bd://1 --bluray-device=. --msg-level=bd=v
[bd] Opening bd://
[bd] List of available titles:
[bd] idx:   1 duration: 00:00:36 (playlist: 00000.mpls)
[bd] idx:   2 duration: 01:31:30 (playlist: 00001.mpls)
[bd] idx:   3 duration: 00:00:50 (playlist: 00003.mpls)

bd://1 actually opens idx 2 from the list, not 1.
bd://mpls/1 opens playlist 00001.mpls as expected.

With this commit:
$ mpv bd://1 --bluray-device=. --msg-level=bd=v
[bd] Opening bd://
[bd] List of available titles:
[bd] idx:   0 duration: 00:00:36 (playlist: 00000.mpls)
[bd] idx:   1 duration: 01:31:30 (playlist: 00001.mpls)
[bd] idx:   2 duration: 00:00:50 (playlist: 00003.mpls)

should play the expected idx 1.
2017-01-16 16:03:15 +00:00
..
ai_alsa1x.c stream/audio: fix unchecked strdups 2015-10-30 15:51:26 +01:00
ai_oss.c stream/audio: fix unchecked strdups 2015-10-30 15:51:26 +01:00
ai_sndio.c stream/audio: fix unchecked strdups 2015-10-30 15:51:26 +01:00
audio_in.c stream/audio: fix unchecked strdups 2015-10-30 15:51:26 +01:00
audio_in.h
cache_file.c Relicense some non-MPlayer source files to LGPL 2.1 or later 2016-01-19 18:36:06 +01:00
cache.c cache: remove redundant free() 2017-01-09 13:18:11 +01:00
cookies.c
cookies.h
dvb_tune.c dvb: remove trailing whitespace 2016-01-22 11:55:47 +01:00
dvb_tune.h stream_dvb: support frontends with multiple delivery systems. 2016-01-21 00:34:02 +01:00
dvbin.h build: make DVB test stricter 2016-04-02 20:51:39 +02:00
frequencies.c
frequencies.h
rar.c mpv_talloc.h: rename from talloc.h 2016-01-11 21:05:55 +01:00
rar.h
stream_avdevice.c Relicense some non-MPlayer source files to LGPL 2.1 or later 2016-01-19 18:36:06 +01:00
stream_bluray.c stream_bluray: use proper 0-based idx 2017-01-16 16:03:15 +00:00
stream_cb.c stream_cb: don't add "*://" to protocol list 2016-09-10 15:35:22 +02:00
stream_cdda.c stream_cdda: remove weird option parsing stuff 2016-09-09 17:54:35 +02:00
stream_dvb.c stream_dvb: remove weird option parsing stuff 2016-09-09 17:54:35 +02:00
stream_dvd_common.c
stream_dvd_common.h
stream_dvd.c demux, stream: add option to prevent opening referenced files 2016-12-04 23:15:31 +01:00
stream_dvdnav.c demux, stream: add option to prevent opening referenced files 2016-12-04 23:15:31 +01:00
stream_edl.c
stream_file.c stream_file: don't use poll() on directories 2016-10-14 17:19:47 -06:00
stream_lavf.c stream_lavf: check seekable flag correctly 2016-09-27 15:51:34 +02:00
stream_libarchive.c stream_libarchive: add some more points at which reading can be stopped 2016-10-01 18:19:57 +02:00
stream_libarchive.h libarchive: unify entry iteration between stream/demux layers 2016-07-18 12:44:56 +02:00
stream_memory.c stream_memory: disable stream cache 2016-08-26 13:33:38 +02:00
stream_mf.c
stream_null.c
stream_rar.c
stream_smb.c
stream_tv.c tv: remove weird option parsing stuff 2016-09-09 17:54:35 +02:00
stream.c demux, stream: add option to prevent opening referenced files 2016-12-04 23:15:31 +01:00
stream.h demux, stream: add option to prevent opening referenced files 2016-12-04 23:15:31 +01:00
tv.c tv: fix option type 2016-11-22 15:54:45 +01:00
tv.h tv: fix option type 2016-11-22 15:54:45 +01:00
tvi_def.h
tvi_dummy.c
tvi_v4l2.c tvi_v4l2: fix style in the uninit function 2016-08-05 10:08:57 +02:00