summaryrefslogtreecommitdiff
path: root/softhddevice.cpp
diff options
context:
space:
mode:
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;
}