mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
surfaceproxy: fix copy to propagate view_id.
Fix gst_vaapi_surface_proxy_copy() to copy the view-id element, thus fixing random frames skipped when vaapipostproc element is used in passthrough mode. In that mode, GstMemory is copied, thus including the underlying GstVaapiVideoMeta and associated GstVaapiSurfaceProxy.
This commit is contained in:
parent
dfa70b9e85
commit
97d7f21575
1 changed files with 1 additions and 0 deletions
|
@ -136,6 +136,7 @@ gst_vaapi_surface_proxy_copy(GstVaapiSurfaceProxy *proxy)
|
|||
proxy->parent : proxy);
|
||||
copy->pool = gst_vaapi_video_pool_ref(proxy->pool);
|
||||
copy->surface = gst_vaapi_object_ref(proxy->surface);
|
||||
copy->view_id = proxy->view_id;
|
||||
copy->timestamp = proxy->timestamp;
|
||||
copy->duration = proxy->duration;
|
||||
copy->destroy_func = NULL;
|
||||
|
|
Loading…
Reference in a new issue