mirror of
https://github.com/rofafor/vdr-plugin-femon.git
synced 2023-10-10 13:36:53 +02:00
Fixed indentation.
This commit is contained in:
parent
78554b53b6
commit
84572d2187
40
femonosd.c
40
femonosd.c
@ -835,26 +835,26 @@ bool cFemonOsd::DeviceSwitch(int direction)
|
|||||||
cChannel *channel = Channels.GetByNumber(cDevice::CurrentChannel());
|
cChannel *channel = Channels.GetByNumber(cDevice::CurrentChannel());
|
||||||
if (channel) {
|
if (channel) {
|
||||||
for (int i = 0; i < cDevice::NumDevices() - 1; i++) {
|
for (int i = 0; i < cDevice::NumDevices() - 1; i++) {
|
||||||
if (direction >= 0) {
|
if (direction >= 0) {
|
||||||
if (++device >= cDevice::NumDevices())
|
if (++device >= cDevice::NumDevices())
|
||||||
device = 0;
|
device = 0;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (--device < 0)
|
if (--device < 0)
|
||||||
device = cDevice::NumDevices() - 1;
|
device = cDevice::NumDevices() - 1;
|
||||||
}
|
}
|
||||||
if (cDevice::GetDevice(device)->ProvidesChannel(channel, 0)) {
|
if (cDevice::GetDevice(device)->ProvidesChannel(channel, 0)) {
|
||||||
debug("%s(%d) device(%d)\n", __PRETTY_FUNCTION__, direction, device);
|
debug("%s(%d) device(%d)\n", __PRETTY_FUNCTION__, direction, device);
|
||||||
cStatus::MsgChannelSwitch(cDevice::PrimaryDevice(), 0, true);
|
cStatus::MsgChannelSwitch(cDevice::PrimaryDevice(), 0, true);
|
||||||
cControl::Shutdown();
|
cControl::Shutdown();
|
||||||
cDevice::GetDevice(device)->SwitchChannel(channel, true);
|
cDevice::GetDevice(device)->SwitchChannel(channel, true);
|
||||||
if (cDevice::GetDevice(device) == cDevice::PrimaryDevice())
|
if (cDevice::GetDevice(device) == cDevice::PrimaryDevice())
|
||||||
cDevice::GetDevice(device)->ForceTransferMode();
|
cDevice::GetDevice(device)->ForceTransferMode();
|
||||||
cControl::Launch(new cTransferControl(cDevice::GetDevice(device), channel));
|
cControl::Launch(new cTransferControl(cDevice::GetDevice(device), channel));
|
||||||
cStatus::MsgChannelSwitch(cDevice::PrimaryDevice(), channel->Number(), true);
|
cStatus::MsgChannelSwitch(cDevice::PrimaryDevice(), channel->Number(), true);
|
||||||
return (true);
|
return (true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return (false);
|
return (false);
|
||||||
|
Loading…
Reference in New Issue
Block a user