diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2009-01-18 11:45:28 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2009-01-18 11:45:28 +0100 |
commit | 1789a813f77dcfbb92284667ee37d4d0dec39b5a (patch) | |
tree | ebf273eefe878803748c266f5096a64c62f8c209 /device.c | |
parent | 3434f061b38c5d809a2fc6630e504cec2f0f093a (diff) | |
download | vdr-1789a813f77dcfbb92284667ee37d4d0dec39b5a.tar.gz vdr-1789a813f77dcfbb92284667ee37d4d0dec39b5a.tar.bz2 |
Added checking mutexCurrentAudioTrack to cDevice::PlayTs()
Diffstat (limited to 'device.c')
-rw-r--r-- | device.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: device.c 2.6 2009/01/16 15:20:21 kls Exp $ + * $Id: device.c 2.7 2009/01/18 11:42:22 kls Exp $ */ #include "device.h" @@ -1322,6 +1322,7 @@ int cDevice::PlayTs(const uchar *Data, int Length, bool VideoOnly) return Length; // silently ignore TS packets w/o payload int PayloadOffset = TsPayloadOffset(Data); if (PayloadOffset < Length) { + cMutexLock MutexLock(&mutexCurrentAudioTrack); int Pid = TsPid(Data); if (Pid == 0) patPmtParser.ParsePat(Data + PayloadOffset, Length - PayloadOffset); |