mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-25 00:28:21 +00:00
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.
This commit is contained in:
parent
b23640fb27
commit
7ced30dbac
1 changed files with 1 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue