1
0
mirror of https://github.com/VDR4Arch/vdr.git synced 2023-10-10 13:36:52 +02:00

Avoiding unnecessary calls to SetPid() in cDvbDevice::SetAudioTrackDevice()

This commit is contained in:
Klaus Schmidinger 2005-02-19 12:18:18 +01:00
parent f714ee0f55
commit f226c84583
3 changed files with 5 additions and 2 deletions

View File

@ -1147,6 +1147,7 @@ Marco Schl
for adding DeviceClrAvailableTracks() and DeviceSetCurrentAudioTrack() to cPlayer for adding DeviceClrAvailableTracks() and DeviceSetCurrentAudioTrack() to cPlayer
for reporting a missing 'resultSkipped = 0' in cRemux::Clear() for reporting a missing 'resultSkipped = 0' in cRemux::Clear()
for reporting a missing reset of the 'repacker' in cTS2PES::Clear() for reporting a missing reset of the 'repacker' in cTS2PES::Clear()
for avoiding unnecessary calls to SetPid() in cDvbDevice::SetAudioTrackDevice()
Jürgen Schmitz <j.schmitz@web.de> Jürgen Schmitz <j.schmitz@web.de>
for reporting a bug in displaying the current channel when switching via the SVDRP for reporting a bug in displaying the current channel when switching via the SVDRP

View File

@ -3420,3 +3420,5 @@ Video Disk Recorder Revision History
- Removed some unneeded code and fixed access to unallocated memory in - Removed some unneeded code and fixed access to unallocated memory in
cEvent::FixEpgBugs() (thanks to Wolfgang Rohdewald). cEvent::FixEpgBugs() (thanks to Wolfgang Rohdewald).
- Avoiding unnecessary calls to SetPid() in cDvbDevice::SetAudioTrackDevice()
(thanks to Marco Schlüßler).

View File

@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and * See the main source file 'vdr.c' for copyright information and
* how to reach the author. * how to reach the author.
* *
* $Id: dvbdevice.c 1.120 2005/02/13 14:26:37 kls Exp $ * $Id: dvbdevice.c 1.121 2005/02/19 11:52:44 kls Exp $
*/ */
#include "dvbdevice.h" #include "dvbdevice.h"
@ -872,7 +872,7 @@ void cDvbDevice::SetAudioTrackDevice(eTrackType Type)
const tTrackId *TrackId = GetTrack(Type); const tTrackId *TrackId = GetTrack(Type);
if (TrackId && TrackId->id) { if (TrackId && TrackId->id) {
if (IS_AUDIO_TRACK(Type)) { if (IS_AUDIO_TRACK(Type)) {
if (pidHandles[ptAudio].pid) { if (pidHandles[ptAudio].pid && pidHandles[ptAudio].pid != TrackId->id) {
pidHandles[ptAudio].pid = TrackId->id; pidHandles[ptAudio].pid = TrackId->id;
SetPid(&pidHandles[ptAudio], ptAudio, true); SetPid(&pidHandles[ptAudio], ptAudio, true);
} }