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:
Gwenole Beauchesne 2014-08-22 15:12:46 +02:00
parent dfa70b9e85
commit 97d7f21575

View file

@ -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;