mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-04 13:32:29 +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 */
|
/* Try with explicit format first */
|
||||||
if (!use_native_formats (usage_flag) &&
|
if (!use_native_formats (usage_flag) &&
|
||||||
GST_VIDEO_INFO_FORMAT (vip) != GST_VIDEO_FORMAT_ENCODED) {
|
GST_VIDEO_INFO_FORMAT (vip) != GST_VIDEO_FORMAT_ENCODED) {
|
||||||
surface = gst_vaapi_surface_new_with_format (display,
|
surface = gst_vaapi_surface_new_full (display, vip, 0);
|
||||||
GST_VIDEO_INFO_FORMAT (vip), GST_VIDEO_INFO_WIDTH (vip),
|
|
||||||
GST_VIDEO_INFO_HEIGHT (vip));
|
|
||||||
if (surface)
|
if (surface)
|
||||||
return surface;
|
return surface;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue