From 289a8e5b87647179f4bbc849824b8bac5a0343cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Manuel=20J=C3=A1quez=20Leal?= Date: Thu, 20 Oct 2016 11:19:50 +0200 Subject: [PATCH] vaapivideomemory: rename input parameter In order to clarify the use of flag as input parameter, it is renamed to surface_alloc_flag, since it is used when creating a VA surface with certain properties. https://bugzilla.gnome.org/show_bug.cgi?id=773497 --- gst/vaapi/gstvaapivideomemory.c | 4 ++-- gst/vaapi/gstvaapivideomemory.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gst/vaapi/gstvaapivideomemory.c b/gst/vaapi/gstvaapivideomemory.c index 7545149923..b28187e757 100644 --- a/gst/vaapi/gstvaapivideomemory.c +++ b/gst/vaapi/gstvaapivideomemory.c @@ -725,7 +725,7 @@ bail: GstAllocator * gst_vaapi_video_allocator_new (GstVaapiDisplay * display, - const GstVideoInfo * vip, guint flags) + const GstVideoInfo * vip, guint surface_alloc_flags) { GstVaapiVideoAllocator *allocator; @@ -740,7 +740,7 @@ gst_vaapi_video_allocator_new (GstVaapiDisplay * display, allocator_configure_surface_info (display, allocator); allocator->surface_pool = gst_vaapi_surface_pool_new_full (display, - &allocator->surface_info, flags); + &allocator->surface_info, surface_alloc_flags); if (!allocator->surface_pool) goto error_create_surface_pool; diff --git a/gst/vaapi/gstvaapivideomemory.h b/gst/vaapi/gstvaapivideomemory.h index 88a3814f40..3f1957e475 100644 --- a/gst/vaapi/gstvaapivideomemory.h +++ b/gst/vaapi/gstvaapivideomemory.h @@ -186,7 +186,7 @@ gst_vaapi_video_allocator_get_type (void) G_GNUC_CONST; G_GNUC_INTERNAL GstAllocator * gst_vaapi_video_allocator_new (GstVaapiDisplay * display, - const GstVideoInfo * vip, guint flags); + const GstVideoInfo * vip, guint surface_alloc_flags); /* ------------------------------------------------------------------------ */ /* --- GstVaapiDmaBufMemory --- */