Fixed a possible deadlock when changing the audio track while replaying a recording

This commit is contained in:
Klaus Schmidinger
2013-03-07 13:27:05 +01:00
parent 16c931453d
commit a67fe0663d
3 changed files with 4 additions and 7 deletions

View File

@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
* $Id: dvbplayer.c 2.32 2013/02/25 12:15:58 kls Exp $
* $Id: dvbplayer.c 2.33 2013/03/07 13:05:15 kls Exp $
*/
#include "dvbplayer.h"
@@ -810,8 +810,6 @@ void cDvbPlayer::Goto(int Index, bool Still)
void cDvbPlayer::SetAudioTrack(eTrackType Type, const tTrackId *TrackId)
{
if (isPesRecording)
return; // for some unknown reason this doesn't work with PES recordings - causes a segfault
if (playMode == pmPlay) {
int Current, Total;
if (GetIndex(Current, Total, true))