mirror of
https://projects.vdr-developer.org/git/vdr-plugin-softhddevice.git
synced 2023-10-10 19:16:51 +02:00
VADisplayAttribDirectSurface removed.
This commit is contained in:
parent
7931909e28
commit
226760490b
24
video.c
24
video.c
@ -2048,18 +2048,8 @@ static int VaapiInit(const char *display_name)
|
|||||||
VaapiNewIntel = 1;
|
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.type = VADisplayAttribBackgroundColor;
|
||||||
attr.flags = VA_DISPLAY_ATTRIB_SETTABLE;
|
attr.flags = VA_DISPLAY_ATTRIB_SETTABLE;
|
||||||
if (vaGetDisplayAttributes(VaDisplay, &attr, 1) != VA_STATUS_SUCCESS) {
|
if (vaGetDisplayAttributes(VaDisplay, &attr, 1) != VA_STATUS_SUCCESS) {
|
||||||
@ -4353,8 +4343,10 @@ static void VaapiSyncDisplayFrame(VaapiDecoder * decoder)
|
|||||||
int64_t audio_clock;
|
int64_t audio_clock;
|
||||||
int64_t video_clock;
|
int64_t video_clock;
|
||||||
|
|
||||||
if (!decoder->DupNextFrame && (!Video60HzMode
|
if (Video60HzMode && !(decoder->FramesDisplayed % 6)) {
|
||||||
|| decoder->FramesDisplayed % 6)) {
|
// FIXME: drop next frame?
|
||||||
|
decoder->DupNextFrame++;
|
||||||
|
} else if (!decoder->DupNextFrame) {
|
||||||
VaapiAdvanceFrame();
|
VaapiAdvanceFrame();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -7410,8 +7402,10 @@ static void VdpauSyncDisplayFrame(VdpauDecoder * decoder)
|
|||||||
int64_t audio_clock;
|
int64_t audio_clock;
|
||||||
int64_t video_clock;
|
int64_t video_clock;
|
||||||
|
|
||||||
if (!decoder->DupNextFrame && (!Video60HzMode
|
if (Video60HzMode && !(decoder->FramesDisplayed % 6)) {
|
||||||
|| decoder->FramesDisplayed % 6)) {
|
// FIXME: drop next frame?
|
||||||
|
decoder->DupNextFrame++;
|
||||||
|
} else if (!decoder->DupNextFrame) {
|
||||||
VdpauAdvanceFrame();
|
VdpauAdvanceFrame();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user