summaryrefslogtreecommitdiff
path: root/device.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2005-02-13 09:54:51 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2005-02-13 09:54:51 +0100
commite972c0464adc6cb21de16867473f3f6ddefcb2bb (patch)
tree500ef6e0cab883cc1f682cfe897d7e23572d647b /device.c
parent78598e1a0a72891765db618f46a99a3dd477776d (diff)
downloadvdr-e972c0464adc6cb21de16867473f3f6ddefcb2bb.tar.gz
vdr-e972c0464adc6cb21de16867473f3f6ddefcb2bb.tar.bz2
cAudio::Play() now also gets the 0xC0...0xDF audio
Diffstat (limited to 'device.c')
-rw-r--r--device.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/device.c b/device.c
index 4eb859ea..f270b5a4 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 1.91 2005/02/12 16:29:49 kls Exp $
+ * $Id: device.c 1.92 2005/02/13 09:51:48 kls Exp $
*/
#include "device.h"
@@ -883,8 +883,11 @@ int cDevice::PlayPesPacket(const uchar *Data, int Length, bool VideoOnly)
break;
case 0xC0 ... 0xDF: // audio
SetAvailableTrack(ttAudio, c - 0xC0, c);
- if (!VideoOnly && c == availableTracks[currentAudioTrack].id)
+ if (!VideoOnly && c == availableTracks[currentAudioTrack].id) {
w = PlayAudio(Start, d);
+ if (FirstLoop)
+ Audios.PlayAudio(Data, Length, c);
+ }
break;
case 0xBD: { // private stream 1
int PayloadOffset = Data[8] + 9;