summaryrefslogtreecommitdiff
path: root/softhddevice.cpp
diff options
context:
space:
mode:
authorhorchi <>2013-01-01 17:58:54 +0100
committerJohns <johns98@gmx.net>2013-01-01 17:58:54 +0100
commit63c22a13cf92550b41a0750d4f88bae16a167b42 (patch)
tree4cc8a7937e8f25ba3ca086df0754b62f8030bd1a /softhddevice.cpp
parent3d5e59a6e516dd58d0e93d283787a1f54515ece1 (diff)
downloadvdr-plugin-softhddevice-63c22a13cf92550b41a0750d4f88bae16a167b42.tar.gz
vdr-plugin-softhddevice-63c22a13cf92550b41a0750d4f88bae16a167b42.tar.bz2
Adds VDR SeduAtmo Plugin support.
Diffstat (limited to 'softhddevice.cpp')
-rw-r--r--softhddevice.cpp21
1 files changed, 21 insertions, 0 deletions
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;
}