mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Fixed moving channels, which sometimes stopped the current replay session
This commit is contained in:
parent
9b3b98f88f
commit
39162a98f0
@ -445,6 +445,7 @@ Mirko D
|
|||||||
for making the "Play" key in live viewing mode resume a previous replay session
|
for making the "Play" key in live viewing mode resume a previous replay session
|
||||||
for suggesting to allow defining key macros for all non-modeless keys
|
for suggesting to allow defining key macros for all non-modeless keys
|
||||||
for reporting a bug in entering '0' in a cMenuEditIntItem
|
for reporting a bug in entering '0' in a cMenuEditIntItem
|
||||||
|
for reporting that moving channels sometimes stopped the current replay session
|
||||||
|
|
||||||
Michael Rakowski <mrak@gmx.de>
|
Michael Rakowski <mrak@gmx.de>
|
||||||
for translating OSD texts to the Polish language
|
for translating OSD texts to the Polish language
|
||||||
|
2
HISTORY
2
HISTORY
@ -4741,3 +4741,5 @@ Video Disk Recorder Revision History
|
|||||||
- Avoiding a compiler warning in libsi's TypeLoop::operator[].
|
- Avoiding a compiler warning in libsi's TypeLoop::operator[].
|
||||||
- Now processing the "frequency list descriptor" (based on a patch from Anssi Hannula).
|
- Now processing the "frequency list descriptor" (based on a patch from Anssi Hannula).
|
||||||
- Improved the repeat function for LIRC remote controls (thanks to Joerg Riechardt).
|
- Improved the repeat function for LIRC remote controls (thanks to Joerg Riechardt).
|
||||||
|
- Fixed moving channels, which sometimes stopped the current replay session
|
||||||
|
(reported by Mirko Dölle).
|
||||||
|
9
device.h
9
device.h
@ -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.h 1.76 2006/05/26 12:46:59 kls Exp $
|
* $Id: device.h 1.77 2006/05/28 09:19:30 kls Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __DEVICE_H
|
#ifndef __DEVICE_H
|
||||||
@ -239,6 +239,13 @@ protected:
|
|||||||
public:
|
public:
|
||||||
static int CurrentChannel(void) { return primaryDevice ? currentChannel : 0; }
|
static int CurrentChannel(void) { return primaryDevice ? currentChannel : 0; }
|
||||||
///< Returns the number of the current channel on the primary device.
|
///< Returns the number of the current channel on the primary device.
|
||||||
|
#if APIVERSNUM != 10400
|
||||||
|
#warning ******* API version changed - activate new code
|
||||||
|
static void SetCurrentChannel(const cChannel *Channel) { currentChannel = Channel ? Channel->Number() : 0; }
|
||||||
|
///< Sets the number of the current channel on the primary device, without
|
||||||
|
///< actually switching to it. This can be used to correct the current
|
||||||
|
///< channel number while replaying.
|
||||||
|
#endif
|
||||||
void ForceTransferMode(void);
|
void ForceTransferMode(void);
|
||||||
///< Forces the device into transfermode for the current channel.
|
///< Forces the device into transfermode for the current channel.
|
||||||
virtual bool HasLock(int TimeoutMs = 0);//XXX PLUGINS.html
|
virtual bool HasLock(int TimeoutMs = 0);//XXX PLUGINS.html
|
||||||
|
13
menu.c
13
menu.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: menu.c 1.436 2006/05/25 12:24:53 kls Exp $
|
* $Id: menu.c 1.437 2006/05/28 09:17:25 kls Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "menu.h"
|
#include "menu.h"
|
||||||
@ -530,8 +530,15 @@ void cMenuChannels::Move(int From, int To)
|
|||||||
cOsdMenu::Move(From, To);
|
cOsdMenu::Move(From, To);
|
||||||
Propagate();
|
Propagate();
|
||||||
isyslog("channel %d moved to %d", FromNumber, ToNumber);
|
isyslog("channel %d moved to %d", FromNumber, ToNumber);
|
||||||
if (CurrentChannel && CurrentChannel->Number() != CurrentChannelNr)
|
if (CurrentChannel && CurrentChannel->Number() != CurrentChannelNr) {
|
||||||
Channels.SwitchTo(CurrentChannel->Number());
|
if (!cDevice::PrimaryDevice()->Replaying() || cDevice::PrimaryDevice()->Transferring())
|
||||||
|
Channels.SwitchTo(CurrentChannel->Number());
|
||||||
|
#if APIVERSNUM != 10400
|
||||||
|
#warning ******* API version changed - activate new code
|
||||||
|
else
|
||||||
|
cDevice::SetCurrentChannel(CurrentChannel);
|
||||||
|
#endif
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user