mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Fixed calling cStatus::MsgChannelSwitch() in cDevice::SetChannel()
This commit is contained in:
parent
f226c84583
commit
605cd54280
@ -1148,6 +1148,7 @@ Marco Schl
|
|||||||
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()
|
for avoiding unnecessary calls to SetPid() in cDvbDevice::SetAudioTrackDevice()
|
||||||
|
for fixing calling cStatus::MsgChannelSwitch() in cDevice::SetChannel()
|
||||||
|
|
||||||
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
|
||||||
|
2
HISTORY
2
HISTORY
@ -3422,3 +3422,5 @@ Video Disk Recorder Revision History
|
|||||||
cEvent::FixEpgBugs() (thanks to Wolfgang Rohdewald).
|
cEvent::FixEpgBugs() (thanks to Wolfgang Rohdewald).
|
||||||
- Avoiding unnecessary calls to SetPid() in cDvbDevice::SetAudioTrackDevice()
|
- Avoiding unnecessary calls to SetPid() in cDvbDevice::SetAudioTrackDevice()
|
||||||
(thanks to Marco Schlüßler).
|
(thanks to Marco Schlüßler).
|
||||||
|
- Fixed calling cStatus::MsgChannelSwitch() in cDevice::SetChannel() (thanks to
|
||||||
|
Marco Schlüßler).
|
||||||
|
32
device.c
32
device.c
@ -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: device.c 1.92 2005/02/13 09:51:48 kls Exp $
|
* $Id: device.c 1.93 2005/02/19 12:20:39 kls Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "device.h"
|
#include "device.h"
|
||||||
@ -571,22 +571,24 @@ eSetChannelResult cDevice::SetChannel(const cChannel *Channel, bool LiveView)
|
|||||||
else
|
else
|
||||||
Result = scrFailed;
|
Result = scrFailed;
|
||||||
Channels.Unlock();
|
Channels.Unlock();
|
||||||
}
|
if (Result == scrOk) {
|
||||||
|
if (LiveView && IsPrimaryDevice()) {
|
||||||
if (Result == scrOk) {
|
// Set the available audio tracks:
|
||||||
if (LiveView && IsPrimaryDevice()) {
|
ClrAvailableTracks();
|
||||||
currentChannel = Channel->Number();
|
currentAudioTrack = ttAudioFirst;
|
||||||
// Set the available audio tracks:
|
for (int i = 0; i < MAXAPIDS; i++)
|
||||||
ClrAvailableTracks();
|
SetAvailableTrack(ttAudio, i, Channel->Apid(i), Channel->Alang(i));
|
||||||
currentAudioTrack = ttAudioFirst;
|
if (Setup.UseDolbyDigital) {
|
||||||
for (int i = 0; i < MAXAPIDS; i++)
|
for (int i = 0; i < MAXDPIDS; i++)
|
||||||
SetAvailableTrack(ttAudio, i, Channel->Apid(i), Channel->Alang(i));
|
SetAvailableTrack(ttDolby, i, Channel->Dpid(i), Channel->Dlang(i));
|
||||||
if (Setup.UseDolbyDigital) {
|
}
|
||||||
for (int i = 0; i < MAXDPIDS; i++)
|
EnsureAudioTrack(true);
|
||||||
SetAvailableTrack(ttDolby, i, Channel->Dpid(i), Channel->Dlang(i));
|
|
||||||
}
|
}
|
||||||
EnsureAudioTrack(true);
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
if (Result == scrOk) {
|
||||||
|
if (LiveView && IsPrimaryDevice())
|
||||||
|
currentChannel = Channel->Number();
|
||||||
cStatus::MsgChannelSwitch(this, Channel->Number()); // only report status if channel switch successfull
|
cStatus::MsgChannelSwitch(this, Channel->Number()); // only report status if channel switch successfull
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user