summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohns <johns98@gmx.net>2012-02-16 09:58:13 +0100
committerJohns <johns98@gmx.net>2012-02-16 09:58:13 +0100
commit346953d20983f94329919ff6483ee4ed5d012732 (patch)
tree152b129be3fc68aff9d1b052c2e318c399e9c93e
parent97af9c6de250087760c4fee7b465f12af5c50722 (diff)
downloadvdr-plugin-softhddevice-346953d20983f94329919ff6483ee4ed5d012732.tar.gz
vdr-plugin-softhddevice-346953d20983f94329919ff6483ee4ed5d012732.tar.bz2
Fix message, if no hq scaling is supported.
-rw-r--r--video.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/video.c b/video.c
index ecaa5ac..990a043 100644
--- a/video.c
+++ b/video.c
@@ -5950,9 +5950,13 @@ static int VdpauInit(const char *display_name)
// VDP_VIDEO_MIXER_ATTRIBUTE_BACKGROUND_COLOR
- Info(_("video/vdpau: highest supported high quality scaling %d\n"),
- VdpauHqScalingMax - VDP_VIDEO_MIXER_FEATURE_HIGH_QUALITY_SCALING_L1 +
- 1);
+ if (VdpauHqScalingMax) {
+ Info(_("video/vdpau: highest supported high quality scaling %d\n"),
+ VdpauHqScalingMax -
+ VDP_VIDEO_MIXER_FEATURE_HIGH_QUALITY_SCALING_L1 + 1);
+ } else {
+ Info(_("video/vdpau: high quality scaling unsupported\n"));
+ }
Info(_("video/vdpau: feature deinterlace temporal %s\n"),
VdpauTemporal ? _("supported") : _("unsupported"));
Info(_("video/vdpau: feature deinterlace temporal spatial %s\n"),
@@ -7965,7 +7969,7 @@ void VideoOsdDrawARGB(int x, int y, int width, int height,
if (y + height > OsdDirtyY + OsdDirtyHeight) {
OsdDirtyHeight = y + height - OsdDirtyY;
}
- Debug(3, "video: osd dirty %dx%d+%d+%d -> %dx%d+%d+%d\n", width, height, x,
+ Debug(4, "video: osd dirty %dx%d+%d+%d -> %dx%d+%d+%d\n", width, height, x,
y, OsdDirtyWidth, OsdDirtyHeight, OsdDirtyX, OsdDirtyY);
#ifdef USE_GLX