mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
vaapipostproc: already have a surface proxy if dmabuf
https://bugzilla.gnome.org/show_bug.cgi?id=755072
This commit is contained in:
parent
8a443f0a18
commit
910bacc55c
1 changed files with 9 additions and 7 deletions
|
@ -647,13 +647,15 @@ gst_vaapipostproc_process_vpp (GstBaseTransform * trans, GstBuffer * inbuf,
|
|||
if (!outbuf_meta)
|
||||
goto error_create_meta;
|
||||
|
||||
proxy =
|
||||
gst_vaapi_surface_proxy_new_from_pool (GST_VAAPI_SURFACE_POOL
|
||||
(postproc->filter_pool));
|
||||
if (!proxy)
|
||||
goto error_create_proxy;
|
||||
gst_vaapi_video_meta_set_surface_proxy (outbuf_meta, proxy);
|
||||
gst_vaapi_surface_proxy_unref (proxy);
|
||||
if (!gst_vaapi_video_meta_get_surface_proxy (outbuf_meta)) {
|
||||
proxy =
|
||||
gst_vaapi_surface_proxy_new_from_pool (GST_VAAPI_SURFACE_POOL
|
||||
(postproc->filter_pool));
|
||||
if (!proxy)
|
||||
goto error_create_proxy;
|
||||
gst_vaapi_video_meta_set_surface_proxy (outbuf_meta, proxy);
|
||||
gst_vaapi_surface_proxy_unref (proxy);
|
||||
}
|
||||
|
||||
if (deint) {
|
||||
deint_flags = (tff ? 0 : GST_VAAPI_DEINTERLACE_FLAG_TOPFIELD);
|
||||
|
|
Loading…
Reference in a new issue