reimar
cd3d3369e1
Mark all stream_info_t as const
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25239 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-02 13:22:53 +00:00
voroshil
6e6214052c
When IFO file is opened (detected by extension), set dvd-device to IFO file's
...
directory and start dvd:// stream instead of file://.
If VTS_<N>_*.IFO is opened, open stream as dvd://<N>
As Nico Sabbi said:
There is no no guarantie that title N is in titleset N,
but there are at least good chances.
The main purpose of this patch is ability to load DVDs, stored on HDD,
using OSD menu.
Modified patch from Benjamin Zores ben at geexbox dot org
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25238 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-02 13:13:02 +00:00
ben
2438f463c3
this variable was nothing but a useless memleak
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25215 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-30 19:54:30 +00:00
nicodvb
298f569c21
pgc->subp_control and pgc->audio_control are no more bitfields,
...
but plain uint32_t and uint16_t respectively; replaced access
to bitfield members with bitmask operations (and removed some
ugly macro)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25151 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-23 21:12:11 +00:00
reimar
ee1dd235b3
Cleanup sg_io_hdr initialization a bit
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25078 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-17 19:07:04 +00:00
reimar
9494622558
We do not have any use for the sense data, so we don't need a buffer for it.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25077 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-17 19:02:30 +00:00
reimar
e7b7e24cc9
Some more cosmetics
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25075 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-17 18:52:42 +00:00
reimar
77d7b8c9e0
Move the zeroing directly before the other initialization code
...
for the array/struct
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25074 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-17 18:49:33 +00:00
reimar
e40792bf0e
Move everything that sets buffer values together.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25073 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-17 18:46:52 +00:00
reimar
d9f35323fa
Another place that can use AV_WB32
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25072 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-17 18:40:46 +00:00
reimar
be0a2badf7
Some cosmetics in dvd_set_speed
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25071 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-17 18:35:36 +00:00
reimar
e0720debf8
Move the DVD speed factor -> KB/s conversion into the case
...
branch where it is actually used
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25070 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-17 18:31:26 +00:00
reimar
dff474a1ce
Add a missing close() to dvd_set_speed function
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25069 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-17 18:27:17 +00:00
reimar
17a2278031
Open device file only right before we need it, so we do not
...
have to add close to all the abort code-paths
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25068 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-17 18:26:25 +00:00
reimar
ed3b33cf03
Do not print Ok message when setting speed limit failed
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25067 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-17 18:23:46 +00:00
reimar
f647aa04e6
AV_WB16(..., 1000) more obviously represents one second that assigning
...
0x03 and 0xe8 (0x3e8 = 1000).
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25066 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-17 18:22:42 +00:00
reimar
9424a3431d
Use AV_WB32 instead of manual bit-fiddling when setting DVD speed
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25065 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-17 18:20:04 +00:00
reimar
509ee9591c
GPCMD_SET_STREAMING command is 12 bytes large, not 16
...
Patch by Sebastian Kemper (sebastian_ml gmx net)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25064 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-17 18:17:19 +00:00
nicodvb
adb4813ca8
report why the dvd couldn't be opened. Patch by Jan Knutar jknutar+nic+fi
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25059 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-16 21:32:09 +00:00
nicodvb
8d63528e95
at the end of open() warn users that seeking won't work correctly if the cache is enabled
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25014 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-10 20:45:28 +00:00
nicodvb
d20ff3542d
implemented STREAM_CTRL_GET_ASPECT_RATIO
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24318 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-01 15:51:41 +00:00
diego
01d92a32ad
cosmetics: typo fix UNSUPORTED --> UNSUPPORTED
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24277 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-28 22:38:45 +00:00
nicodvb
0bfd6cb4f1
in stream_control() remove redefinition of d in a case block, previously assigned in the same function
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24249 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-27 21:40:09 +00:00
nicodvb
c803ba9baf
in open_s() unified failure code in fail:
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24248 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-27 21:10:41 +00:00
diego
5c0d8ece5a
Remove redundant variable declarations.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24165 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-25 12:04:52 +00:00
reimar
f12a0e61cc
Set DVD speed earlier to avoid drive spinup during open
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24114 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-21 12:38:45 +00:00
cehoyos
e5a6eae2cf
Moved dvdtimetomsec to stream_dvd_common.c.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24013 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-04 21:59:26 +00:00
diego
f1ead29ad9
The file is compiled conditional to USE_DVDREAD so the #ifdef USE_DVDREAD
...
in the file are senseless.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23711 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-03 08:24:01 +00:00
reimar
865605639c
Fix dvd:// subtitle handling to always report the MPEG stream id, because
...
this is the only thing the remaining parts of MPlayer care about.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23621 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-06-24 08:14:10 +00:00
diego
5edd9af248
Remove some unused variables, patch by timwoj ieee org.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23399 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-05-28 08:42:35 +00:00
nicodvb
39e4226e59
fixed off-by-one bug during chapter-listing; fixed by Jared Breland (list-mplayer@legroom.net) and me
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23386 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-05-26 20:27:45 +00:00
nicodvb
8e2bc40df5
print the disc_id without using a buffer
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22430 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-03-04 08:49:24 +00:00
nicodvb
9dae0ef2b9
10000l; in previous commit I allocated a buffer 1 byte too short
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22422 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-03-03 13:39:46 +00:00
nicodvb
5caf4aa1b9
replaced 1 instances of sprintf() with snprintf(); patch by njkain gmail com.
...
This patch is intended to render code easier to audit against buffer oveflows
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22421 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-03-03 13:16:31 +00:00
reimar
a2d923c273
Simplify code by using separate variables for large common expressions.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22222 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-02-15 15:54:06 +00:00
nicodvb
1e93b37a87
at open() assign *file_format=DEMUXER_TYPE_MPEG_PS to avoid useless demuxer probing
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21944 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-01-16 22:38:26 +00:00
nicodvb
70904c9204
replace call to UDFFindFile() (that is not part of the public API) with DVDOpenFile()
...
patch by Klaus Muller (mk.2001 web de)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21747 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-12-23 23:13:11 +00:00
nicodvb
1b03ddac28
support for limiting dvd speed; patch by Tobias Diedrich (ranma tdiedrich se)
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21652 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-12-17 18:10:49 +00:00
reimar
b3241c226a
ID_SUBTITLE_ID should show the -sid number, not the vobsub id also for dvd subs.
...
Patch by Lehel Bernadt [lehel pmc-services hu]
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21570 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-12-10 13:17:54 +00:00
nicodvb
6e28f63e36
consistency fix: STREAM_CTRL_GET_TIME_LENGTH and STREAM_CTRL_GET_CURRENT_TIME now return time in (double) seconds
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20867 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-11-12 17:19:56 +00:00
nicodvb
61f29af978
make fail STREAM_CTRLs related to seeking/fetching time/chapter when the cache is enabled: they can't work atm
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20856 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-11-11 13:02:39 +00:00
nicodvb
f544f53ceb
idenfify now shows the timings of chapters of the chosen pgc
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20828 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-11-10 00:36:39 +00:00
nicodvb
81bc02a02a
implemented STREAM_CTRL_GET_CURRENT_TIME and STREAM_CTRL_SEEK_TO_TIME (precise seeking)
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20762 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-11-07 22:49:56 +00:00
diego
0384045e30
Streamline and simplify internal vs external libdvdread handling.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20651 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-11-03 22:03:58 +00:00
ods15
ee88e6f26f
gcc 2.95 fix
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20164 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-10-11 20:53:33 +00:00
ptt
68613bbee7
added OSD audio switching visualization
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20162 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-10-11 17:25:46 +00:00
corey
c3c17fc952
Print current DVD title as ID_DVD_CURRENT_TITLE.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20092 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-10-06 19:06:59 +00:00
nicodvb
66e04345be
implemented STREAM_CTRL_GET_NUM_CHAPTERS
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19482 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-08-21 19:13:36 +00:00
diego
abe5c26e23
Print DVD audio channel and subtitle track information in non-verbose mode,
...
some more consistency for MSGL.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19454 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-08-19 14:52:50 +00:00
nicodvb
539b760061
sanity check: since chapter is 0-based it can't exceed nr_of_ptts-1
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19448 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-08-19 10:45:17 +00:00
nicodvb
c5f2783e20
support for seeking to chapter and getting current playing chapter
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19446 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-08-18 19:05:37 +00:00
ben
49867bd432
introduce new 'stream' directory for all stream layer related components and split them from libmpdemux
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19277 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-07-31 17:39:17 +00:00