diff options
| -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"); |
