summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--softhddev.c3
-rw-r--r--video.c6
2 files changed, 5 insertions, 4 deletions
diff --git a/softhddev.c b/softhddev.c
index 4b9edcf..6121094 100644
--- a/softhddev.c
+++ b/softhddev.c
@@ -1760,9 +1760,6 @@ uint8_t *GrabImage(int *size, int jpeg, int quality, int width, int height)
}
return NULL;
}
- if (width != -1 && height != -1) {
- Warning(_("softhddev: scaling unsupported\n"));
- }
return VideoGrab(size, &width, &height, 1);
}
diff --git a/video.c b/video.c
index ef1b70d..a6a90b2 100644
--- a/video.c
+++ b/video.c
@@ -8859,8 +8859,12 @@ uint8_t *VideoGrab(int *size, int *width, int *height, int write_header)
free(data);
return rgb;
- }
+ } else
#endif
+ {
+ Warning(_("softhddev: grab unsupported\n"));
+ }
+
(void)size;
(void)width;
(void)height;