[vdr-plugin-pvrinput] 02/06: New upstream version 2015-11-07
Tobias Grimm
tiber-guest at moszumanska.debian.org
Sat Feb 17 10:16:47 UTC 2018
This is an automated email from the git hooks/post-receive script.
tiber-guest pushed a commit to branch master
in repository vdr-plugin-pvrinput.
commit 9175c409f2e7b5878de1e316d38e2e12ed6d2873
Author: Tobias Grimm <git at e-tobi.net>
Date: Sat Feb 17 11:07:31 2018 +0100
New upstream version 2015-11-07
---
pvrinput.c | 10 ++++++++--
udev.c | 12 ++++++------
2 files changed, 14 insertions(+), 8 deletions(-)
diff --git a/pvrinput.c b/pvrinput.c
index b001c85..a0b0d8c 100644
--- a/pvrinput.c
+++ b/pvrinput.c
@@ -6,7 +6,7 @@
#endif
#endif
-static const char *VERSION = "2014-01-11";
+static const char *VERSION = "2015-11-07";
static const char *DESCRIPTION = tr("use Hauppauge PVR as input device");
static const char *MAINMENUENTRY = tr("PVR picture settings");
@@ -86,7 +86,13 @@ const char *cPluginPvrInput::MainMenuEntry(void)
cOsdObject *cPluginPvrInput::MainMenuAction(void)
{
- cChannel *channel = Channels.GetByNumber(cDevice::CurrentChannel());
+#if VDRVERSNUM > 20300
+ LOCK_CHANNELS_READ
+ const cChannels *vdrchannels = Channels;
+#else
+ cChannels *vdrchannels = &Channels;
+#endif
+ const cChannel *channel = vdrchannels->GetByNumber(cDevice::CurrentChannel());
#if VDRVERSNUM < 10713
if (channel && channel->IsPlug())
return new cPvrMenuMain();
diff --git a/udev.c b/udev.c
index dbd14fc..695849f 100644
--- a/udev.c
+++ b/udev.c
@@ -79,14 +79,14 @@ pvrinput::cUdevListEntry *pvrinput::cUdevDevice::GetDevlinksList(void) const
const char *pvrinput::cUdevDevice::GetDevnode(void) const
{
if (device == NULL)
- return false;
+ return NULL;
return udev_device_get_devnode(device);
}
const char *pvrinput::cUdevDevice::GetDevpath(void) const
{
if (device == NULL)
- return false;
+ return NULL;
return udev_device_get_devpath(device);
}
@@ -103,28 +103,28 @@ pvrinput::cUdevDevice *pvrinput::cUdevDevice::GetParent(void) const
const char *pvrinput::cUdevDevice::GetPropertyValue(const char *Key) const
{
if (device == NULL)
- return false;
+ return NULL;
return udev_device_get_property_value(device, Key);
}
const char *pvrinput::cUdevDevice::GetSubsystem(void) const
{
if (device == NULL)
- return false;
+ return NULL;
return udev_device_get_subsystem(device);
}
const char *pvrinput::cUdevDevice::GetSysname(void) const
{
if (device == NULL)
- return false;
+ return NULL;
return udev_device_get_sysname(device);
}
const char *pvrinput::cUdevDevice::GetSyspath(void) const
{
if (device == NULL)
- return false;
+ return NULL;
return udev_device_get_syspath(device);
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-vdr-dvb/vdr-plugin-pvrinput.git
More information about the pkg-vdr-dvb-changes
mailing list