Skip to content

Commit

Permalink
vaapipostproc: already have a surface proxy if dmabuf
Browse files Browse the repository at this point in the history
  • Loading branch information
JulienIsorce committed Sep 26, 2015
1 parent 9d690a2 commit 4d66db1
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions gst/vaapi/gstvaapipostproc.c
Expand Up @@ -644,13 +644,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);
Expand Down

0 comments on commit 4d66db1

Please sign in to comment.