summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CONTRIBUTORS3
-rw-r--r--HISTORY2
-rw-r--r--device.c4
-rw-r--r--device.h5
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()
diff --git a/HISTORY b/HISTORY
index bcefec4e..8840c3d0 100644
--- a/HISTORY
+++ b/HISTORY
@@ -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).
diff --git a/device.c b/device.c
index 5b9b5141..3a60fe43 100644
--- a/device.c
+++ b/device.c
@@ -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;
diff --git a/device.h b/device.h
index 8ac85946..5698fde2 100644
--- a/device.h
+++ b/device.h
@@ -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