diff options
| author | Lars Hanisch <dvb@flensrocker.de> | 2011-02-02 22:21:10 +0100 |
|---|---|---|
| committer | Lars Hanisch <dvb@flensrocker.de> | 2011-02-02 22:21:10 +0100 |
| commit | 9218868b8aebbf83196368a1f46a911a55f2a502 (patch) | |
| tree | 5005eb8bef18f28adec0408c638eac6e3c929dbc | |
| parent | 035cab576d7b01720d02ea6485146bb7ec501aa1 (diff) | |
| download | vdr-plugin-pvrinput-9218868b8aebbf83196368a1f46a911a55f2a502.tar.gz vdr-plugin-pvrinput-9218868b8aebbf83196368a1f46a911a55f2a502.tar.bz2 | |
add udev-filter for "video4linux /dev/video" if the dynamite-plugin is present
| -rwxr-xr-x | device.c | 5 | ||||
| -rwxr-xr-x | pvrinput.c | 2 |
2 files changed, 5 insertions, 2 deletions
@@ -264,6 +264,7 @@ bool cPvrDevice::Probe(int DeviceNumber) bool cPvrDevice::Initialize(void) { + cPlugin *dynamite = cPluginManager::GetPlugin("dynamite"); int found = 0; VBIDeviceCount = 0; #ifdef PVR_SOURCEPARAMS @@ -273,7 +274,7 @@ bool cPvrDevice::Initialize(void) PvrDevices[i] = NULL; if (Probe(i)) { #ifdef __DYNAMIC_DEVICE_PROBE - if (cPluginManager::GetPlugin("dynamite")) + if (dynamite) cDynamicDeviceProbe::QueueDynamicDeviceCommand(ddpcAttach, *cString::sprintf("/dev/video%d", i)); else #else @@ -287,6 +288,8 @@ bool cPvrDevice::Initialize(void) else log(pvrINFO, "cPvrDevice::Initialize(): no PVR device found"); externChannelSwitchScript = AddDirectory(cPlugin::ConfigDirectory(PLUGIN_NAME_I18N), "externchannelswitch.sh"); + if (dynamite) + dynamite->Service("dynamite-AddUdevMonitor-v0.1", (void*)("video4linux /dev/video")); return found > 0; } @@ -6,7 +6,7 @@ #endif #endif -static const char *VERSION = "2011-01-20"; +static const char *VERSION = "2011-02-02"; static const char *DESCRIPTION = tr("use Hauppauge PVR as input device"); static const char *MAINMENUENTRY = tr("PVR picture settings"); |
