Commit d481fd45 authored by Jean-Paul Saman's avatar Jean-Paul Saman

VAAPI-XCB: cleanup

parent bf097674
...@@ -280,7 +280,7 @@ int OpenVaapiX11(vlc_object_t *obj) ...@@ -280,7 +280,7 @@ int OpenVaapiX11(vlc_object_t *obj)
sys->cursor = CreateBlankCursor(conn, scr); sys->cursor = CreateBlankCursor(conn, scr);
msg_Info(vd, "using VAAPI XCB video output (libva version %d.%d)", msg_Info(vd, "using VAAPI XCB video output (libva version %d.%d)",
sys->vaconn->i_version_major, sys->vaconn->i_version_minor); sys->vaconn->i_version_major, sys->vaconn->i_version_minor);
/* */ /* */
vout_display_info_t info = vd->info; vout_display_info_t info = vd->info;
...@@ -580,10 +580,10 @@ static void DisplayVASurface(vout_display_t *vd, picture_t *picture) ...@@ -580,10 +580,10 @@ static void DisplayVASurface(vout_display_t *vd, picture_t *picture)
#define VA_FILTER_SCALING_MASK 0x00000f00 #define VA_FILTER_SCALING_MASK 0x00000f00
*/ */
unsigned int flags = VA_FILTER_SCALING_DEFAULT; unsigned int flags = VA_FILTER_SCALING_DEFAULT;
/* NOTE: vaCreateContext() specifies VA_PROGRESSIVE */ /* NOTE: vaCreateContext() specifies VA_PROGRESSIVE */
flags |= picture->b_progressive ? VA_FRAME_PICTURE : flags |= picture->b_progressive ? VA_FRAME_PICTURE :
(picture->b_top_field_first ? VA_TOP_FIELD : VA_BOTTOM_FIELD); (picture->b_top_field_first ? VA_TOP_FIELD : VA_BOTTOM_FIELD);
msg_Dbg( vd, "Displaying surface id: %d / %p", surface->i_id, picture );
VAStatus status; VAStatus status;
status = vaPutSurface(sys->vaconn->p_display, surface->i_id, sys->window, status = vaPutSurface(sys->vaconn->p_display, surface->i_id, sys->window,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment