Commit Graph

586 Commits

Author SHA1 Message Date
diego 60fa2be5d7 consistency cosmetics
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25575 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-01 20:05:36 +00:00
diego d6e22603ef Add explanatory comments to #endif preprocessor directives.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25568 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-01 19:36:23 +00:00
nicodvb 7ded17d4c2 include dvdnav.h from its installation directory rather than appending
-Idvdnav to the compilation of the whole mplayer (dvdnav-config was just
cleaned)


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25567 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-01 17:34:57 +00:00
nicodvb 78d3a0fca5 removed inclusion of unneeded header (forgotten in previous commit)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25565 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-01 17:03:25 +00:00
nicodvb d37917abf5 private structures belong to the C file using them, not to header files included somewhere else
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25564 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-01 17:01:03 +00:00
diego fba0b66ff9 Add explanatory comments to the #endif part of multiple inclusion guards.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25563 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-31 16:15:50 +00:00
reimar bfef84e32f Simplify a little bit
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25487 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-21 11:56:18 +00:00
reimar 023446528b Remove a check that is never in any way useful
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25486 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-21 11:53:55 +00:00
reimar 64b88a4139 Avoid some le2me_ASF_* stuff operating directly on buffer, should
simplify some future changes


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25484 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-21 11:46:58 +00:00
reimar 642b997690 Remove another useless cast
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25482 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-21 11:37:47 +00:00
reimar 5947ca8334 100l, buffer bound checks work better when done _before_ access.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25481 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-21 11:34:04 +00:00
reimar f00272efea Reduce some extreme parsing ugliness (mostly cosmetic)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25480 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-21 11:30:55 +00:00
reimar c06c4c6379 Remove useless alloc casts
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25479 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-21 10:53:32 +00:00
reimar 0791efc730 Reduce code duplication: add a asf_read_wrapper function that never does partial reads
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25478 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-21 00:13:08 +00:00
ulion 278692c1bf Fix stream_cache to use sector_size set in stream_t.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25473 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-20 11:36:53 +00:00
reimar b39d60f8b1 Use tv_sec instead of tv_usec to set 1 second timeout, e.g. NetBSD
does not like the current way (bug #858).
Patch by Sergey Svishchev [svs ropnet ru].


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25469 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-20 10:29:44 +00:00
ulion 88cd8566b5 Protocol name should be case insensitive.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25457 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-19 01:28:00 +00:00
ulion fdd52f2f93 Caching toc header in vcd private structure for later use.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25439 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-17 15:24:40 +00:00
ulion cc840ba8b2 Add cdda stream control for chapter commmands.
Now we support seek cdda/cddb tracks by seek_chapter command.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25438 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-17 15:20:28 +00:00
ulion 973a0844aa Should not change stream->pos in fill_buffer function.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25424 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-16 16:39:10 +00:00
ulion 6277b4387f Support cddb on darwin.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25421 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-16 11:31:52 +00:00
nicodvb 1fd25fed63 10l, in dvb_free_config() channels' names must be free individually
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25417 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-15 21:06:58 +00:00
ben e25991774e cosmetic: indent after r25415
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25416 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-15 19:17:36 +00:00
ben 1fd811a487 do not override *file_format if already set by asf_streaming_start()
ASX files containing a playlist were probably not playable at all.

Fixes playback of the following:
http://www.impek.com/go/oldcartoontv/wm
http://www.impek.tv/go/soul/wm
http://www.impek.com/go/tropical2/wm
http://www.impek.com/go/mizik/wm


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25415 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-15 19:16:49 +00:00
ulion 88a2c17be2 Make the end_sector accessable (it should be).
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25410 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-15 15:38:38 +00:00
nicodvb 22d9f6ea0c removed the obscene priv->stream entry. Someone must have injected vodka in my milk when I wrote it
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25408 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-15 13:37:41 +00:00
nicodvb a9d2f4db42 get rid of the file-static dvb_config and free the config at close() . Patch by Andrew Calkin and me
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25407 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-15 13:30:44 +00:00
ulion 43bfd2d128 Only read disc info once and save it for later using.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25406 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-15 13:24:01 +00:00
nicodvb c5ad15d8c0 dvb cleanup: call dvb_(set|step)_channel() without dereferencing stream->priv (1000l to me)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25405 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-15 13:05:06 +00:00
ulion 9c189c49bf The buffer used for pread need be aligned, but currently it got an offset 23
to the structure head. This will cause the pread always got random data
on some machines (such as my iMac G5 PPC with 10.5 os) so can not play vcd.
I also tried use DKIOCCDREAD ioctl call, but the result is same -- buffer need
be aligned. It could be a bug of os x or its dev lib.
Now fix this problem by move the buffer to a good aligned position in structure.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25404 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-15 12:17:51 +00:00
ulion 25a4519cd9 Get end position of last track by adding its starting address with track size.
On some darwin system, we can not get the lead out track info.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25403 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-15 12:11:44 +00:00
ulion 10ea9291c1 Replace printf with mp_msg.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25402 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-15 01:12:44 +00:00
ulion a91bdbc2a8 Only print one track info when exactly seeking to the beginning of a track.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25393 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-14 15:39:46 +00:00
ulion 00f27965e5 Fix stream cdda seeks to CD's end and hangs forever bug.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25390 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-14 08:26:06 +00:00
nicodvb bcf142a30f fix memleaks; patch by andrew calkin from gmail com
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25383 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-12 22:54:20 +00:00
diego a6cf8a908c Replace SYS_DARWIN by __APPLE__ and __DARWIN__ where appropriate.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25370 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-11 23:52:55 +00:00
nicodvb 358717114f removed stupid checks
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25324 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-08 18:16:02 +00:00
lu_zero 4135fd19a7 10l ... the header was used there too
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25296 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-04 15:05:14 +00:00
lu_zero a1fe08b750 Make libnemesi use specific struct and DEMUXER_TYPE
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25294 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-04 13:05:25 +00:00
reimar 7afc929e2a mime_type_table is const as well
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25274 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-02 22:12:50 +00:00
reimar cdc332e6c0 Add a few forgotten static/const attributes in tvi_vbi.c
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25273 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-02 22:08:22 +00:00
reimar dd2fcb4370 stream_opts arrays should be const
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25270 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-02 21:37:08 +00:00
reimar b8a403f124 Make m_option_t arrays referenced by cfg-common.h const
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25269 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-02 21:26:23 +00:00
reimar 15cddcd511 Preserve unsv:// protocol specifier over http redirects.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25266 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-02 18:24:01 +00:00
reimar c3fc57f402 Add appropriate const specifiers to some custom parse functions.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25260 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-02 16:40:20 +00:00
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
reimar 1f0c614110 Make auto_open_streams array itself const
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25237 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-02 13:07:35 +00:00
reimar 5a046a6f4d auto_open_streams should have const type, fix also the places where it is used
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25235 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-01 16:31:49 +00:00
nicodvb a7e85be81e at startup show audio and subtitle streams available in the chosen title with all their properties
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25224 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-01 11:35:03 +00:00