summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>2016-10-20 11:19:50 +0200
committerVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>2016-10-25 19:38:26 +0200
commit289a8e5b87647179f4bbc849824b8bac5a0343cb (patch)
treeb987005966bfe836ec39d131b29497481720d355
parent039e8c0d5626fd13acb85f049151245b9726abb0 (diff)
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
-rw-r--r--gst/vaapi/gstvaapivideomemory.c4
-rw-r--r--gst/vaapi/gstvaapivideomemory.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/gst/vaapi/gstvaapivideomemory.c b/gst/vaapi/gstvaapivideomemory.c
index 75451499..b28187e7 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 88a3814f..3f1957e4 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 --- */