mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-12 03:16:33 +00:00
libs: blend: update to new mini-object API
This commit is contained in:
parent
a3c2c93216
commit
db338f1316
1 changed files with 2 additions and 2 deletions
|
@ -234,7 +234,7 @@ gst_vaapi_blend_process_begin (GstVaapiBlend * blend, GstVaapiSurface * surface)
|
||||||
GST_VAAPI_DISPLAY_LOCK (blend->display);
|
GST_VAAPI_DISPLAY_LOCK (blend->display);
|
||||||
|
|
||||||
va_status = vaBeginPicture (GST_VAAPI_DISPLAY_VADISPLAY (blend->display),
|
va_status = vaBeginPicture (GST_VAAPI_DISPLAY_VADISPLAY (blend->display),
|
||||||
blend->va_context, GST_VAAPI_OBJECT_ID (surface));
|
blend->va_context, GST_VAAPI_SURFACE_ID (surface));
|
||||||
|
|
||||||
if (!vaapi_check_status (va_status, "vaBeginPicture()")) {
|
if (!vaapi_check_status (va_status, "vaBeginPicture()")) {
|
||||||
GST_VAAPI_DISPLAY_UNLOCK (blend->display);
|
GST_VAAPI_DISPLAY_UNLOCK (blend->display);
|
||||||
|
@ -314,7 +314,7 @@ gst_vaapi_blend_process_render (GstVaapiBlend * blend,
|
||||||
|
|
||||||
memset (param, 0, sizeof (*param));
|
memset (param, 0, sizeof (*param));
|
||||||
|
|
||||||
param->surface = GST_VAAPI_OBJECT_ID (surface);
|
param->surface = GST_VAAPI_SURFACE_ID (surface);
|
||||||
param->surface_region = &src_rect;
|
param->surface_region = &src_rect;
|
||||||
param->output_region = &dst_rect;
|
param->output_region = &dst_rect;
|
||||||
param->output_background_color = 0xff000000;
|
param->output_background_color = 0xff000000;
|
||||||
|
|
Loading…
Reference in a new issue