diff options
author | Johns <johns98@gmx.net> | 2012-03-06 16:56:26 +0100 |
---|---|---|
committer | Johns <johns98@gmx.net> | 2012-03-06 16:56:26 +0100 |
commit | 226760490b7c0813bb040c2a7435935344a1aaea (patch) | |
tree | c41deb2d28dc42f14d0232d99698305549231350 /video.c | |
parent | 7931909e28df715e4d54d082dff5a8f46b669407 (diff) | |
download | vdr-plugin-softhddevice-226760490b7c0813bb040c2a7435935344a1aaea.tar.gz vdr-plugin-softhddevice-226760490b7c0813bb040c2a7435935344a1aaea.tar.bz2 |
VADisplayAttribDirectSurface removed.
Diffstat (limited to 'video.c')
-rw-r--r-- | video.c | 24 |
1 files changed, 9 insertions, 15 deletions
@@ -2048,18 +2048,8 @@ static int VaapiInit(const char *display_name) VaapiNewIntel = 1; } // - // check if driver makes a copy of the VA surface for display. + // check which attributes are supported // - attr.type = VADisplayAttribDirectSurface; - attr.flags = VA_DISPLAY_ATTRIB_GETTABLE; - if (vaGetDisplayAttributes(VaDisplay, &attr, 1) != VA_STATUS_SUCCESS) { - Error(_("video/vaapi: Can't get direct-surface attribute\n")); - attr.value = 1; - } - Info(_("video/vaapi: VA surface is %s\n"), - attr.value ? _("direct mapped") : _("copied")); - // FIXME: handle the cases: new liba: Don't use it. - attr.type = VADisplayAttribBackgroundColor; attr.flags = VA_DISPLAY_ATTRIB_SETTABLE; if (vaGetDisplayAttributes(VaDisplay, &attr, 1) != VA_STATUS_SUCCESS) { @@ -4353,8 +4343,10 @@ static void VaapiSyncDisplayFrame(VaapiDecoder * decoder) int64_t audio_clock; int64_t video_clock; - if (!decoder->DupNextFrame && (!Video60HzMode - || decoder->FramesDisplayed % 6)) { + if (Video60HzMode && !(decoder->FramesDisplayed % 6)) { + // FIXME: drop next frame? + decoder->DupNextFrame++; + } else if (!decoder->DupNextFrame) { VaapiAdvanceFrame(); } @@ -7410,8 +7402,10 @@ static void VdpauSyncDisplayFrame(VdpauDecoder * decoder) int64_t audio_clock; int64_t video_clock; - if (!decoder->DupNextFrame && (!Video60HzMode - || decoder->FramesDisplayed % 6)) { + if (Video60HzMode && !(decoder->FramesDisplayed % 6)) { + // FIXME: drop next frame? + decoder->DupNextFrame++; + } else if (!decoder->DupNextFrame) { VdpauAdvanceFrame(); } |