From 7ced30dbac4dbf578b4a7e32a8120c3dab4ad8e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Manuel=20J=C3=A1quez=20Leal?= Date: Mon, 9 Jan 2017 12:51:11 +0100 Subject: [PATCH] vaapivideomemory: unroll gst_vaapi_surface_new_with_format() gst_vaapi_surface_new_with_format() is a wrapper for gst_vaapi_surface_new_full (). In this case, the former is simpler than the first. This patch changes that. --- gst/vaapi/gstvaapivideomemory.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/gst/vaapi/gstvaapivideomemory.c b/gst/vaapi/gstvaapivideomemory.c index 2ad0127e34..fa14ba7c4a 100644 --- a/gst/vaapi/gstvaapivideomemory.c +++ b/gst/vaapi/gstvaapivideomemory.c @@ -172,9 +172,7 @@ new_surface (GstVaapiDisplay * display, const GstVideoInfo * vip, /* Try with explicit format first */ if (!use_native_formats (usage_flag) && GST_VIDEO_INFO_FORMAT (vip) != GST_VIDEO_FORMAT_ENCODED) { - surface = gst_vaapi_surface_new_with_format (display, - GST_VIDEO_INFO_FORMAT (vip), GST_VIDEO_INFO_WIDTH (vip), - GST_VIDEO_INFO_HEIGHT (vip)); + surface = gst_vaapi_surface_new_full (display, vip, 0); if (surface) return surface; }