diff options
author | Klaus Schmidinger <kls (at) cadsoft (dot) de> | 2001-11-25 18:00:00 +0100 |
---|---|---|
committer | Klaus Schmidinger <kls (at) cadsoft (dot) de> | 2001-11-25 18:00:00 +0100 |
commit | b420457467ad0c8ae71f8b985914e85b7a0ff5aa (patch) | |
tree | 6d5b949efc2de0e0a5b27272fa92581e133c7fe3 /dvd.c | |
parent | 6e1fd835558b4e70ad94a280a209f050ec0f7a75 (diff) | |
download | vdr-patch-lnbsharing-b420457467ad0c8ae71f8b985914e85b7a0ff5aa.tar.gz vdr-patch-lnbsharing-b420457467ad0c8ae71f8b985914e85b7a0ff5aa.tar.bz2 |
Version 0.99pre1vdr-0.99pre1
- Fixed several channel definitions in 'channels.conf' (thanks to Thilo
Wunderlich).
- Added MPEG audio support for DVD (thanks to Andreas Schultz).
- Implemented DVB-T support (thanks to Dave Chapman).
This currently works only for UK channels.
- Removed the range limits for the Frequency and Srate parameters of channel
definitions.
- Changed the maximum value for PIDs in channels.conf from 0xFFFE to 0x1FFF.
- Fixed DVD audio sync problems (thanks to Andreas Schultz).
- Fixed external AC3 replay for DVDs (thanks to Andreas Schultz).
Diffstat (limited to 'dvd.c')
-rw-r--r-- | dvd.c | 23 |
1 files changed, 22 insertions, 1 deletions
@@ -6,7 +6,7 @@ * * Initially written by Andreas Schultz <aschultz@warp10.net> * - * $Id: dvd.c 1.3 2001/08/06 16:07:44 kls Exp $ + * $Id: dvd.c 1.4 2001/11/10 13:38:50 kls Exp $ */ #ifdef DVDSUPPORT @@ -21,6 +21,7 @@ #include <unistd.h> #include "dvd.h" +#include "tools.h" // --- cDVD ---------------------------------------------------------------------------- @@ -145,4 +146,24 @@ dvd_file_t *cDVD::openTitle(int Title, dvd_read_domain_t domain) return title; } +int cDVD::getAudioTrack(int stream) +{ + if (getVTS()) { + switch (getVTS()->vtsi_mat->vts_audio_attr[stream].audio_format) { + case 0: // ac3 + return aAC3; + case 2: // mpeg1 + case 3: // mpeg2ext + return aMPEG; + case 4: // lpcm + return aLPCM; + case 6: // dts + return aDTS; + default: + esyslog(LOG_ERR, "ERROR: unknown Audio stream info"); + } + } + return 0; +} + #endif //DVDSUPPORT |