The default for DEPRECATED_SETCURRENTCHANNEL has been set to 0

This commit is contained in:
Klaus Schmidinger 2021-05-21 12:51:16 +02:00
parent f7c8f582ea
commit b7112ece6c
2 changed files with 7 additions and 2 deletions

View File

@ -9694,3 +9694,8 @@ Video Disk Recorder Revision History
- The 'Edit path' dialog now also shows the total size of all recordings in that path - The 'Edit path' dialog now also shows the total size of all recordings in that path
(thanks to Christoph Haubrich). (thanks to Christoph Haubrich).
- The macro DEPRECATED_VDR_CHARSET_OVERRIDE and the related code has been removed. - The macro DEPRECATED_VDR_CHARSET_OVERRIDE and the related code has been removed.
- The default for DEPRECATED_SETCURRENTCHANNEL has been set to 0, which means that
the function SetCurrentChannel(const cChannel *Channel) is no longer available.
You can add 'DEPRECATED_SETCURRENTCHANNEL=1' when compiling in order to restore this
functionality. However, it is recommended to use SetCurrentChannel(int ChannelNumber)
instead.

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: device.h 4.17 2020/06/27 10:24:46 kls Exp $ * $Id: device.h 5.1 2021/05/21 12:51:16 kls Exp $
*/ */
#ifndef __DEVICE_H #ifndef __DEVICE_H
@ -358,7 +358,7 @@ 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.
#ifndef DEPRECATED_SETCURRENTCHANNEL #ifndef DEPRECATED_SETCURRENTCHANNEL
#define DEPRECATED_SETCURRENTCHANNEL 1 #define DEPRECATED_SETCURRENTCHANNEL 0
#endif #endif
#if DEPRECATED_SETCURRENTCHANNEL #if DEPRECATED_SETCURRENTCHANNEL
static void SetCurrentChannel(const cChannel *Channel) { currentChannel = Channel ? Channel->Number() : 0; } static void SetCurrentChannel(const cChannel *Channel) { currentChannel = Channel ? Channel->Number() : 0; }