diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2009-11-22 13:25:16 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2009-11-22 13:25:16 +0100 |
commit | c8402639f60ce0feec31c31748d1162d40754012 (patch) | |
tree | 3b49b0bf2da059873f03f6c96197f4d444f37bae | |
parent | d8857154a1a193251705088d3a064f6ded5ad6ee (diff) | |
download | vdr-c8402639f60ce0feec31c31748d1162d40754012.tar.gz vdr-c8402639f60ce0feec31c31748d1162d40754012.tar.bz2 |
Added the audio id to the call of PlayAudio() in cDevice::PlayTsAudio()
-rw-r--r-- | CONTRIBUTORS | 3 | ||||
-rw-r--r-- | HISTORY | 2 | ||||
-rw-r--r-- | device.c | 4 | ||||
-rw-r--r-- | device.h | 5 |
4 files changed, 8 insertions, 6 deletions
diff --git a/CONTRIBUTORS b/CONTRIBUTORS index 70575dc7..d6749426 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -2509,3 +2509,6 @@ Rene van den Braken <rene@vandenbraken.name> Milan Hrala <hrala.milan@gmail.com> for translating OSD texts to the Slovakian language + +Andreas Schaefers <andreas_schaefers@gmx.de> + for adding the audio id to the call of PlayAudio() in cDevice::PlayTsAudio() @@ -6189,3 +6189,5 @@ Video Disk Recorder Revision History - The cRingBufferLinear::Read() function now returns -1 and sets errno to EAGAIN if the buffer is already full. - Fixed handling DVB subtitles for PES recordings (thanks to Rolf Ahrenberg). +- Added the audio id to the call of PlayAudio() in cDevice::PlayTsAudio() + (thanks to Andreas Schaefers). @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: device.c 2.25 2009/08/16 10:54:36 kls Exp $ + * $Id: device.c 2.26 2009/11/22 13:19:03 kls Exp $ */ #include "device.h" @@ -1309,7 +1309,7 @@ int cDevice::PlayTsAudio(const uchar *Data, int Length) // Audio PES always has an explicit length and consists of single packets: int l; if (const uchar *p = tsToPesAudio.GetPes(l)) { - int w = PlayAudio(p, l, 0); + int w = PlayAudio(p, l, p[3]); if (w <= 0) { tsToPesAudio.SetRepeatLast(); return w; @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: device.h 2.15 2009/06/06 11:15:49 kls Exp $ + * $Id: device.h 2.16 2009/11/22 13:21:00 kls Exp $ */ #ifndef __DEVICE_H @@ -514,9 +514,6 @@ protected: ///< Plays the given data block as audio. ///< Data points to exactly one complete PES packet of the given Length. ///< Id indicates the type of audio data this packet holds. - ///< Note that as of version 1.7.1 Id is obsolete and may be 0 (in case of - ///< TS replay). Plugins that need to know this Id shall read it from the - ///< actual PES data (it's the 4th byte). ///< PlayAudio() shall process the packet either as a whole (returning ///< Length) or not at all (returning 0 or -1 and setting 'errno' accordingly). ///< \return Returns the number of bytes actually taken from Data, or -1 |