Commit Graph

769 Commits

Author SHA1 Message Date
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
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
ben 2e15ab9351 this local variable can be static
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25214 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-30 19:51:30 +00:00
nicodvb 038f77e272 -identify also shows the duration(s) of the title(s)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25205 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-29 23:25:14 +00:00
nicodvb 36bcaa934d cosmetics: moved identification code to a separate function
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25204 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-29 23:01:46 +00:00
nicodvb 7252c0e78e when no title is chosen -identify all titles present in the dvd
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25196 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-29 00:16:08 +00:00
nicodvb 2e4f57d04d with -identify show the title being described
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25195 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-29 00:13:11 +00:00
nicodvb 8171a77ed9 -identify chapters of chosen title
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25193 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-28 23:50:05 +00:00
zuxy 4a00ef1767 Correct VCD track no. calculation on Windows.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25188 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-28 11:48:45 +00:00
zuxy c869211a95 Avoid gcc warning:
vcd_read_win32.h:61: warning: format '%u' expects type 'unsigned int',
but argument 4 has type 'DWORD'


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25187 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-28 11:36:23 +00:00
zuxy ea9b477dc7 Return correct length in ID_VCD_TRACK_n_MSF
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25186 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-28 11:34:01 +00:00
lu_zero 8e18e41638 Enable -rtsp-port for nemesi
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25184 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-27 21:31:47 +00:00
lu_zero d4e14ef53e Remove stray var
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25183 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-27 21:17:20 +00:00
voroshil 84170d0b24 Add missing '\n' in tv scanner results output.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25166 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-26 10:04:18 +00:00
ulion 0bb30d41b3 Support stream redirection from http to mms, fix bug #927.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25163 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-26 00:41:21 +00:00
voroshil e4e63d7a04 Revert r25089 (Ignore video formats which are supported by device
but not supported by dshow driver).

It prevents code from r25091 (probing undeclared formats) functioning
properly: those code is never called if all declared by device formats
are unsupported by MPlayer (even if undeclared one is supported).

After this revert PVR-150 card should work as expected.



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25155 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-24 07:51:31 +00:00
voroshil d0fa6cd8c8 Move requested format at top and shift all oters down
This method is better with recent negotiation code:
requested formats will be checked first.



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25154 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-24 07:28:05 +00:00
voroshil fd10d43723 Сreate empty format arrays in case of error in init_chain_common.
Fixes segfault for cards without audio capture pin
in main capture filter.



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25153 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-24 06:01:18 +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
nicodvb 98fe636509 don't include anymore the dvdread headers from the dvdnav directory
(the right ones are included in the #else). Patch by Rathann


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25140 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-22 22:41:08 +00:00
voroshil 3ce51a62d3 Compilation fix (typo)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25133 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-21 13:55:39 +00:00
voroshil 02159c2be1 Sizes of arpmt and arStreamCaps must be equal.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25124 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-21 03:49:23 +00:00
voroshil 01658583a4 Move code related to chain initialization and similar
for different chains to separate routine.



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25122 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-20 19:33:27 +00:00
voroshil 49b320c00c Fix mplayer crash caused by r25116
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25121 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-20 17:19:16 +00:00
voroshil 7c9a04f6c0 Remove no more needed check
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25118 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-20 10:02:19 +00:00
voroshil 298dd31e32 Fix totally wrong (due to mess of brackets) structures size check.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25117 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-20 10:01:14 +00:00
voroshil a9aa43a249 Replace several parameters for get_available_formats_stream
and get_available_formats_pin with one chain structure.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25116 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-20 09:02:43 +00:00
voroshil 23cc31e505 New routine for reconnecting two pins with new media type
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25115 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-19 20:19:33 +00:00
voroshil 12fd879776 Move pointer to SampleGrabber filter into chain structure.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25114 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-19 19:49:17 +00:00
voroshil 423882fe73 Move common chain uninit code into separate routine.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25113 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-19 19:45:01 +00:00
voroshil 54203fe1d1 pass chain structure instead of several variables to build_sub_graph
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25112 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-19 19:33:53 +00:00
voroshil 002759bb8a fix missed change
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25111 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-19 19:25:25 +00:00
voroshil 2390359b25 Add capture filter's pointer to vbi chain structure too.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25110 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-19 19:24:21 +00:00
voroshil 8e2f39307a Code unification: get rid of local variable arpmtVBI
and use chain structure's arpmt member.



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25109 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-19 19:15:36 +00:00
voroshil 2f8d411130 Add major media type to chain structure
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25108 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-19 19:02:09 +00:00
voroshil 110184516b One step of code cleanup: move all variables, related
to audio/video/vbi chains of filters into separate structure
(will simplify some parts of code in future)



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25107 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-19 18:53:13 +00:00
voroshil c30eaa2029 100l: Fix long standing copy-paste error:
TUN_SET_NORM should set norm value not get it.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25105 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-19 09:05:23 +00:00
voroshil 5f8294fb14 Add all passed to VID_SET_FORMAT formats to the end of
available format list (but report call as failed, to
continue checking formats).

This gives small chance to build graph even if device
does not report about particular format as supported.

This makes mplayer be able to work with PVR-150 card
(card's driver does not report about yuy2 format, but
accepts connection and works with it).



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25096 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-18 13:17:00 +00:00
voroshil a516b405d8 Ensure that when VID_GET_FORMAT ioctl is called,
video chain in graph is ready built.
Otherwise driver can return one format
while graph builder will negotiate another.



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25095 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-18 11:36:57 +00:00
voroshil 8b33e65473 (cosmetics) Indentation fix of previous commit.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25094 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-18 11:15:14 +00:00
voroshil fa18524d05 New media format negotiation code:
loop through all available formats trying to
establish connection between pins.

Negotiation stops either when all formats are rejected
(error reported in this case) or when connection is
established (which can happen only when current media
format is accepted by both of the pins).



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25093 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-18 11:13:28 +00:00
voroshil 1e663de892 Move setting media format code
closer to connection establishment routine.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25092 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-18 10:55:51 +00:00
voroshil 790cd7ec47 Pass all available formats to chain building routine and
establish connection with first of available formats.

This will make further format negotiation patch slightly
simpler. 

To avoid pins connection error due to unsuported format
at top of the list, put requested video format to the
top of list. This will also useful with upcoming patch -
negotiation will be started from requested format.



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25091 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-18 10:51:22 +00:00
voroshil b7ad0227fb Ignore video formats which are supported by device
but not supported by dshow driver.



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25089 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-18 08:24:30 +00:00
voroshil 78a0719de9 Fix crash when pin connection fails.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25088 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-18 06:16:37 +00:00
voroshil 0da22f962f Prevent chains from building more than once.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25087 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-18 05:20:17 +00:00
voroshil c8b82b4b80 Handle "out of memory" error.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25086 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-18 05:07:51 +00:00
voroshil 5c684e7e4c Move chains building code into separate routines.
This makes code more readable and will allow
building particular chain before start().



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25085 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-18 05:02:49 +00:00
voroshil bf33c147fa (cosmetics) Lookup table alignment.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25082 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-17 19:55:16 +00:00
voroshil 88cd527ad0 Service routine for constructing AM_MEDIA_TYPE structure from
given fourcc with help of lookup table.



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25081 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-17 19:51:46 +00:00
voroshil e0f028b2a4 Disable terminating directshow chains with NullRenderer filter,
bacause this causes jerky video.



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25080 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-17 19:32:18 +00:00
voroshil 66d7d00ea2 Fix bogus bits per pixel values in lookup table.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25079 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-17 19:08:03 +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
voroshil b40c2c3057 (cosmetics) Indentation fix
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25076 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-17 18:52:43 +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
rtogni de22a05645 Ignore stream id when checking rdt packet flags
Fixes bugzilla #930


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25063 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-17 18:08:53 +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
voroshil 13df91222f Make sure that mplayer will receive actual media type
instead of requested value.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25057 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-16 18:59:35 +00:00
voroshil b4355b2f1d Fix FPS from bitrate calculation (was 8 times larger than real value).
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25056 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-16 17:57:12 +00:00
nicodvb 2d6d93d83d removed forgotten and out of date comment
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25053 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-14 22:26:14 +00:00
nicodvb 5420abe07f removed unneeded checks on MP_DVDNAV and DVDNAV_FORMAT_AC3 (we need and assume our fork)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25052 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-14 22:25:10 +00:00
voroshil 9ac045e0d1 Not all cards supports changing country code.
This patch makes failed call to put_CountryCode non-fatal.



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25047 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-14 12:57:17 +00:00
voroshil 70ca379c4c Add missing call to audio_in_uninit in v4l2 tv driver.
Without it, tv does not start on the second run when using mplayer in slave or idle mode.

Patch by Stanislaw Jesmanowicz stan at jesmanowicz dot com



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25033 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-13 11:34:45 +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
cehoyos 4be2fcb25e Fix possible null-pointer-dereference in stream_fill_buffer().
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24991 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-08 23:07:19 +00:00
voroshil 0290988bbd Fix memory leak.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24972 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-05 16:34:15 +00:00
voroshil f057394851 Fix segmentation fault after audio initialization failure in tv driver.
Error was caused by double call to driver's uninit() routine.



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24971 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-05 16:33:29 +00:00
nicodvb 3d1e0439ea removed unused variables and parameters
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24903 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-10-30 22:30:15 +00:00
diego 94e3b4a0f7 Comment out unused variable, fixes the warning:
dvb_tune.c:43: warning: 'dvb_secdev' defined but not used


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24889 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-10-30 08:44:15 +00:00
diego 4de99aade1 Remove unused functions, fixes the warnings:
pnm.c:853: warning: 'pnm_peek_header' defined but not used
pnm.c:859: warning: 'pnm_close' defined but not used


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24888 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-10-30 08:14:41 +00:00
zuxy 242c5fc73c Make functions static if they aren't referenced externally.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24869 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-10-27 17:46:09 +00:00
reimar 2d84ff3489 Remove assert. Not only are they no help at all and proper checks should
be added if desired, also assert.h is not included so compilation may fail.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24859 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-10-27 06:47:35 +00:00
voroshil 31d2ed32a6 Don't wait for filling entire audio ringbuffer at each call to grab_audio_frame.
Fixes 2 minutes delay before starting playback and audio clicks in sound
(at least for my SAA7134 based card while capturing radio through saa7134-alsa
module).


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24849 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-10-25 15:04:33 +00:00
voroshil f7e755eb55 Add missing call to audio_in_start_capture.
Fixes capturing sound from ALSA devices
(repeated xrun errors, buffer underruns and son on).



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24848 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-10-25 14:57:17 +00:00
ivo def691696e add missing include (errno.h). fix compilation on openbsd
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24847 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-10-24 12:07:29 +00:00
voroshil 803d454576 Simplify handling SET_NORM for V4l1: replace several if-else-if and switch
statements with one lookup table;



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24817 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-10-20 11:46:15 +00:00
voroshil 6114954b08 czech/slovak character set fixes:
plain latin characters instead of native were wrongly used in several places
of charset table.

patch from Oldrich Jedlicka oldium dot pro at seznam dot cz




git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24816 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-10-20 05:02:44 +00:00
voroshil 39e5906704 After receiving EINTR 'read' syscall should be restarted.
Fixes receiving teletext on some systems.

Modified patch from Oldrich Jedlicka oldium dot pro at aenam dot cz



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24791 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-10-16 01:53:34 +00:00
voroshil e3212dafd5 Disable channel scanner when no tuner is present.
TV channel scanner is useless without tuner and causes
mplayer crash due to uninitialized chanlist_s variable
(e.g when dummy driver and tvscan are used together).



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24790 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-10-15 17:46:17 +00:00
voroshil dde6ba8352 Fix mplayer segfault when v4l driver initialization (at setting norm
stage) failed.



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24787 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-10-14 17:56:29 +00:00
voroshil 2585d1e148 #ifdef's in tv.c and tv.h becomes more and more hard to maintain.
I've decided to remove all of them and control options only through cfg-common.h



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24786 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-10-14 16:44:32 +00:00
voroshil a15457b8d7 Remove unnecessary curly braces.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24782 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-10-14 07:20:24 +00:00
voroshil f9a227eb94 8 bytes buffer is not enough for at least SECAM-DK.
Increase it to 20.



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24781 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-10-14 06:28:51 +00:00
voroshil 19d217a981 Replace duplicated code with call to routine
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24780 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-10-14 05:56:17 +00:00
voroshil a776f3be21 10l: routine sets norm from parameter, but prints value of tv norm option
(which can be not equal to parameter).



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24779 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-10-14 05:45:20 +00:00
voroshil 40fdbecb5a (cosmetics) indentation fix of my previous commit and small readability
improvement.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24778 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-10-14 05:18:32 +00:00
voroshil 4800f1bf62 Remove driver-dependent #ifdef from norm_from_string routine.
It will use TVI_CONTROL_SPC_GET_NORMID if supported by driver and
fallback to hardcoded norms otherwise.
This will not change current behaviour because hardcoded norms were used
with drivers which do not support above ioctl.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24777 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-10-14 05:15:51 +00:00
voroshil 6ec3aa1159 (cosmetics) remove trailing whitespace
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24776 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-10-14 04:56:01 +00:00
iive bb18bd5088 10l fix compilation with v4l2
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24775 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-10-13 19:57:51 +00:00
voroshil 45287b2c2b DirectShow based tv:// driver for win32
Teletext is also supported (but 625 system parameters are hardcoded).
pthreads is required for teletext.

Code is still experimental.



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24772 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-10-13 17:14:39 +00:00
nicodvb 29979efc60 removed useless inclusion of error.h
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24767 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-10-13 09:40:32 +00:00
reimar bc41cde0b7 Make sure forked code does not try to display a GTK message box (and thus crashes)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24717 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-10-07 08:41:31 +00:00
diego c8ae1836e6 cosmetics: misc typo fixes
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24615 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-25 16:34:23 +00:00
voroshil 2312ca9e70 Fix compilation with enabled radio capture and disabled OSS audio.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24603 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-24 16:48:08 +00:00
lu_zero 0ff4b3fd9f libnemesi support, yet another rtsp/rtp library...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24584 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-19 21:38:22 +00:00
reimar 946272e8b4 (Re)move idiotic checks, ret can't be < 0 or > 0 if the loop condition
is that it is == 0!


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24579 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-19 13:01:08 +00:00
reimar 79918649e2 Fix a few typos
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24578 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-19 12:54:10 +00:00
voroshil fdb78c2bea Implement setting gain control for video devices (usually webcams)
in v4l2 tv:// driver.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24573 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-18 16:28:39 +00:00
nicodvb dca2352543 removed unused members from dvdnav_priv_t
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24513 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-15 09:57:00 +00:00
nicodvb 25f19895b5 Removed dead code related to stills.
patch by Attila Ötvös (oattila chellu hu)


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24512 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-15 09:13:24 +00:00
voroshil 7d44f8c906 Fix missing reset/initialization (with tv parameters) of
vbi subsystem after tv initialization.



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24450 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-13 17:13:27 +00:00
diego 177e5c452a Add missing #include to fix compilation.
patch by Bernd Ernesti, mplayer-dev-eng lists.veego de


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24431 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-12 08:49:25 +00:00
voroshil dcc2e2e5ea Implementation of tv:// driver autodetection.
If user did not specify driver directly, all available
drivers will be probed (in order: v4l2,v4l1,bsdbt848,dummy).
In most cases first probed driver will be successfully autodetected
and used.
Autodetection will be disabled if user specified driver directly (in
command line or config).


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24423 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-10 17:09:35 +00:00
voroshil 0efbf8149c Fix for:
tvi_v4l2.c: In function 'start':
tvi_v4l2.c:1453: warning: comparison between signed and unsigned


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24366 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-08 10:15:08 +00:00
voroshil bfc18929a7 More accurate calculating of teletext
page update intervals



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24365 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-08 10:04:08 +00:00
voroshil 641a7ddabd Implement boxes for subtitle teletext pages.
Text is shown in opaque boxes inside transparent
teletext page.




git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24364 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-08 09:48:43 +00:00
voroshil 67276cc8cd Decrease teletext page rendering frequency from 1/frame to about 4/sec.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24362 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-08 03:06:23 +00:00
voroshil a027248c5f Fix for:
tvi_vbi.c:1392: warning: 'decode_raw_line_sine' defined but not used


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24336 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-03 14:21:53 +00:00
voroshil dfdd178117 Increase number of skipped buffers to 5 to avoid mixing teletext pages from
different channels during channel switch.



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24325 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-02 06:12:32 +00:00
nicodvb 0f4b9929eb a mouse selection may require at least a video codec reinit
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24324 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-01 21:35:07 +00:00
nicodvb 4da74f1f7b implemented STREAM_CTRL_GET_ASPECT_RATIO
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24323 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-01 21:00:18 +00:00
voroshil a108787e00 Make sure that no pages will left in cache during
channel switch (immediately stop decoding of vbi buffer when clear_cache is called).



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24321 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-01 18:49:51 +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
nicodvb 818cc0cf0d introduced STREAM_CTRL_GET_ASPECT_RATIO to report the aspect ratio read from the stream layer (if supported)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24317 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-01 15:50:52 +00:00
voroshil efd9aba867 Drop out control chars from page header in time position.
Expand time line if necessary.




git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24316 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-01 14:36:49 +00:00
voroshil ce81a2156b Fix missed -1 -> 0x3f7f changes for subpage number.
Patch from Otvos Attila oattila at chello dot hu



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24314 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-01 10:14:42 +00:00
voroshil bbce9daf29 Fix displaying start page when it has subpages.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24313 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-01 01:32:17 +00:00
voroshil b61657c12c Proper support for flashing chars in teletext pages.
Patch from Otvos Attila oattila at chello dot hu



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24312 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-01 01:22:30 +00:00
voroshil 374e9dd5ba Support for selecting language via packet 28.
Also  allows to select default teletext language.
It will be used if language is not specified by network provider
via packet 28.



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24310 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-31 16:53:27 +00:00
voroshil b60132ee12 Small code simplification as suggested by Reimar:
declare variables used only inside loop in those loop.
Hope this will make code a bit easy to understand.




git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24300 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-29 18:19:50 +00:00
voroshil 9ef594f0e8 Simplify code by using FFSWAP
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24299 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-29 18:11:09 +00:00
voroshil 23d80af5c6 (cosmetics) replace tabs with spaces
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24298 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-29 17:46:33 +00:00
voroshil beda7b3ce3 (cosmetics) fix indentation of previous commit
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24297 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-29 17:44:40 +00:00
voroshil 48302e019d Implement Hold/Release graphics (showing control chars as
graphics instead of spaces).



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24296 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-29 17:43:13 +00:00
voroshil 5b673bf021 Implement Flash/Steady (swapping foreground/background colors)
and Conceal (filling following chars with spaces) control characters.



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24295 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-29 17:28:41 +00:00
voroshil b32b4824f8 Make charset constants naming consistant
(renamed according to specification).



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24291 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-29 13:37:12 +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
iive 96217887af Fix compilation by adding forgotten comma.
Noticed by Evrim Furuncu on irc.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24276 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-28 19:58:45 +00:00
voroshil e8834d6d47 Conversion tables for Serbian/Croatian, Ukrainian and Greek charsets.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24275 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-28 18:06:11 +00:00
voroshil 6e88eeb7b7 Move channels option parsing code into separate routine.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24266 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-28 14:36:13 +00:00
voroshil c4debc9042 Implement X/27/0 packet decoding.
It contains information about navigation links.

Modified patch from Otvos Attila oattila at chello dot hu


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24264 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-28 14:10:47 +00:00
diego 84157efa5a Clean up the way get_path is handled: Compile get_path.c to an object to link
against instead of directly #including the C file and replace the many extern
declarations by a proper header file.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24262 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-28 11:20:24 +00:00
voroshil fb7d88d344 Implement 8/30 format 1 teletext packet decoding
It contains network id, network name, current date and time.

patch from Otvos Attila oattila at chello dot hu



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24252 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-28 02:37:48 +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
voroshil 04c1f99a05 (cosmetics) remove unnecessary ';'
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24217 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-26 19:44:23 +00:00
voroshil e6a1b51d71 Replace perror() with mp_msg()
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24213 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-26 16:58:27 +00:00
voroshil 2f920f5449 Implement TVI_CONTROL_TUN_GET_SIGNAL in *BSD BT848 driver.
This will enable TV channels scanning feature under *BSD.



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24212 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-26 15:12:55 +00:00
voroshil 0593b7b6f8 10l: Move #endif upper to reflect changes in r24054.
This fixes wrong tvscan suboptions initialization under *BSD.

patch from Bernd Ernesti mplayer-dev-eng at lists dot veego dot de



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24211 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-26 15:03:43 +00:00
voroshil b26a0e5a63 Fix typo
Patch from Otvos Attila oattila at chello dot hu



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24210 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-26 12:59:47 +00:00
voroshil 801976dc82 Add teletext specification reference
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24206 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-26 05:18:00 +00:00
voroshil 2ad1d1c0c2 Remove ugly Russian language support hack.
Currently support for only Latin-1 languages is left.
Proper solution for another languages will be added later.



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24205 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-26 05:15:53 +00:00
voroshil 3e0d0aca85 Add support for Latin National Option Sub-Sets
Modified Otvos Attila's patch oattila at chello dot hu



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24204 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-26 05:11:15 +00:00
voroshil 0f559826b0 Enable decoding of packet X/24, it is usual teletext line
and contains labels for navigation links.
10l: fix comments for constants.

patch from Otvos Attila oattila at chello dot hu



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24203 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-26 04:56:37 +00:00
voroshil aad3231850 10l: "&" should be done after ">>"
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24189 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-25 16:42:38 +00:00
voroshil 74083dfe01 Language bits in teletext page header are
control bits C12-C14 (bits 2-4 of d[7]), not C11-C13 (bits 1-3).



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24187 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-25 16:39:02 +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
cehoyos 4f33b7daed Removed uninitialized variable.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24129 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-23 23:14:00 +00:00
voroshil f1fbca4bdd Automatic TV channels scanning ability for MPlayer.
Code is based on patch from Otvos Attila oattila at chello dot hu


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24125 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-23 16:09:30 +00:00
voroshil ffac6ce7eb Fix blue color for yv12 and i420 image formats in "automute" screen
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24124 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-23 14:20:31 +00:00
voroshil 65e0b2a95e Fix [soc:eoc] stubs.
Slightly modified patch from Otvos Attila oattila at chello dot hu



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24119 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-22 14:01:57 +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
reimar 46afe7d1d2 Fix a bug in stream_read_qword_le due to sign extension from int to uint64_t.
Patch by Sean Veers [cf3cf3 gmail com]


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24099 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-19 08:50:58 +00:00
diego 80dee3f8ac Sync libdvdread with version 0.9.5 (functional changes).
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24067 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-15 11:47:22 +00:00
diego 5fe4c90509 Fix compilation on BSD.
patch by Bernd Ernesti, mplayer-dev-eng lists.veego de


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24054 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-13 17:41:56 +00:00
diego 42ae2a635d Remove unused variables.
patch by Bernd Ernesti, mplayer-dev-eng lists.veego de


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24053 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-13 08:49:11 +00:00
diego 9dd9d9a791 Fix UDP select timeout.
patch by Tim Wojtulewicz, timwoj ieee org


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24046 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-12 12:16:11 +00:00
cehoyos 9e9a76fd38 Fix warning: too many arguments for format
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24039 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-08 22:30:51 +00:00
cehoyos 06c7780569 Define teletext_control() in tvi_v4l.c and tvi_v4l2.c.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24037 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-08 21:47:36 +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
nicodvb 58d131b1c6 cosmetics: removed commented code and small reindentation
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24011 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-04 21:25:28 +00:00
nicodvb 3870447956 removed unused variables
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24010 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-04 21:16:22 +00:00
cehoyos 9a4832f066 Added missing newline.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23999 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-03 10:57:49 +00:00
ivo 655604a44c remove GNUism (case range)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23948 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-30 18:48:03 +00:00
voroshil 8ff547240b Teletext support for V4Lv1
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23946 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-30 18:00:11 +00:00
voroshil aae0e9dcde 10l: wrong pointer was initialized (causes crash during startup).
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23945 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-30 17:31:54 +00:00
reimar 653301b8e6 Fix hopefully final 150 sector offset VCD bug. Caused no noticeable problems on Linux
because it is the only case where M:S:F is used in the read call.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23941 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-30 16:13:04 +00:00
reimar 317fbd8905 Simplify sun SCSI command generation
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23940 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-30 15:53:50 +00:00
reimar 0ce80b61cb big 10L of r9888 located: passed fd instead of pointer to sun_vcd_read
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23939 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-30 15:47:17 +00:00
voroshil ce2792fe74 Subtraction should be done after & operation.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23928 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-30 02:12:25 +00:00
voroshil 3a9bed720f Drop out overlooked debug line
Fix hex to char conversion



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23927 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-30 02:02:32 +00:00
reimar ecd76ccd5c More doxygen comments
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23922 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-29 17:57:12 +00:00
voroshil 0c9c146505 Teletext support
Part 3/5: grabbing raw VBI data



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23921 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-29 17:56:47 +00:00
voroshil 4f0d56b9ae Teletext support.
Part 2/5: options/slaves/configure/definitions/etc


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23920 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-29 17:55:28 +00:00
voroshil dd5778726e Teletext support.
Part 1/5: core stuff



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23919 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-29 17:52:11 +00:00
reimar ef750478b7 Simplify and fix missing offset for Darwin vcd_get/set_msf functions
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23918 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-29 15:59:55 +00:00
reimar 2ea3b5fdb0 Make VCD work on little-endian macs
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23916 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-29 15:37:30 +00:00
reimar 1c67c05e8c Make vcd_get_track_end actually return the end, not the start on Darwin
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23915 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-29 15:35:52 +00:00
reimar 5bcef8f16b Make the vcd seek and get track end functions actually have an effect
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23914 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-29 14:42:07 +00:00
reimar 0f4796adaa Fix wrong return type in darwin VCD code
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23911 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-29 12:41:22 +00:00
voroshil 61bce335f7 Replacing global variables in radio:// with
context-sensitive structure.



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23910 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-29 12:20:25 +00:00
voroshil db734dcc15 Removing global variables from tv://
Step 8 (last): removing old globals from tv.c, tv.h,
fixing remaining references in cfg-common.h and mplayer.c



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23909 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-29 10:30:41 +00:00
voroshil a890471f6d Removing global variables from tv://
Step 7: replacing old globals with new structure in stream_pvr.c



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23908 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-29 10:25:10 +00:00
voroshil 758e3ef39c Removing global variables from tv://
Step 6: removing references to old globals from tv.c



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23907 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-29 10:22:39 +00:00
voroshil 3a1756d7e6 Removing global variables from tv://
Step 5: removing references to old globals from tvi_v4l2.c



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23906 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-29 10:21:48 +00:00
voroshil 7b4a1214ed Removing global variables from tv://
Step 4: removing references to old globals from tvi_v4l.c



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23905 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-29 10:21:00 +00:00
voroshil f59e46baca Removing global variables from tv://
Step 3: removing references to old globals from tvi_bsdbt848.c



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23904 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-29 10:20:05 +00:00
voroshil 7cdc5ad4fe Removing global variables from tv://
Step 2: fixing tv subdrivers initialization.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23903 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-29 10:18:38 +00:00
voroshil b7adae655f Removing global variables from tv://
Step 1: introducing new structure, fixing tv:// stream



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23902 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-29 10:11:24 +00:00
voroshil 487d4927e2 Removing forward declarations of routines used only in tv.c
Marking above routines as static
Removing unfaithful comment



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23901 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-29 03:55:12 +00:00
voroshil d68160b3c2 Cosmetics.
10l: forget to move up second routine



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23900 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-29 03:38:01 +00:00
voroshil 96addffa41 Cosmetics: move two routines up
to avoid requirement of forward declarations.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23899 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-29 03:33:39 +00:00
diego 22fc24fe56 cosmetics: misc typo fixes
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23893 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-28 14:28:38 +00:00
reimar b9c8b4fbcd Remove completely pointless extra return statements
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23883 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-27 19:25:51 +00:00
reimar 5d70f50109 Fix MSF -> sector conversion being 150 sectors of
(pregap or whatever it is called)


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23882 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-27 18:51:07 +00:00
reimar 63e8a30682 Simplify track length calculation
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23881 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-27 18:47:44 +00:00
reimar fec1bd1a56 Some more *BSD vcd_read simplification
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23880 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-27 18:34:09 +00:00
reimar def6db4b62 Fix several 100l
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23879 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-27 18:31:50 +00:00
reimar 9ba43bdd88 Factor out some common code
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23878 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-27 18:04:52 +00:00
reimar bd77635966 Somewhat unified *BSD vcd reading
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23877 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-27 17:37:53 +00:00
reimar f82f6553f3 READ_TOC for making *BSD code more similar
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23876 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-27 17:18:03 +00:00
reimar 8987d1ade2 One ifdef less
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23874 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-27 17:02:56 +00:00
reimar adce32de93 Simplify NetBSD vcd_read code
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23873 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-27 16:59:41 +00:00
reimar 37c39a9f74 vcd_inc_msf function also for freebsd vcd_read
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23872 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-27 16:34:52 +00:00
reimar 647514eb73 More VCD cosmetics
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23871 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-27 08:49:14 +00:00
reimar d10cfcf015 100l, return is missing a value
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23870 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-26 23:19:36 +00:00