From 63c22a13cf92550b41a0750d4f88bae16a167b42 Mon Sep 17 00:00:00 2001 From: horchi <> Date: Tue, 1 Jan 2013 17:58:54 +0100 Subject: Adds VDR SeduAtmo Plugin support. --- softhddevice.cpp | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'softhddevice.cpp') diff --git a/softhddevice.cpp b/softhddevice.cpp index d85f52e..f0f8c38 100644 --- a/softhddevice.cpp +++ b/softhddevice.cpp @@ -2409,6 +2409,27 @@ bool cPluginSoftHdDevice::Service(const char *id, void *data) r->height = height; return true; } + + if (strcmp(id, ATMO1_GRAB_SERVICE) == 0) { + SoftHDDevice_AtmoGrabService_v1_1_t *r; + + if (!data) { + return true; + } + + if (SuspendMode != NOT_SUSPENDED) { + return false; + } + + r = (SoftHDDevice_AtmoGrabService_v1_1_t *) data; + r->img = VideoGrabService(&r->size, &r->width, &r->height); + if (!r->img) { + return false; + } + + return true; + } + return false; } -- cgit v1.2.3