mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-10 03:19:40 +00:00
context: reset VA context if VA surfaces set changed.
It is a requirement from VA-API specification that the VA context got from vaCreateContext(), for decoding purposes, binds the supplied set of VA surfaces. This means that if the set of VA surfaces is to be changed for the current decode session, then the VA context needs to be recreated with the new set of VA surfaces.
This commit is contained in:
parent
c12d80eb88
commit
906a561c26
1 changed files with 3 additions and 0 deletions
|
@ -399,6 +399,9 @@ gst_vaapi_context_reset (GstVaapiContext * context,
|
|||
} else if (new_cip->usage == GST_VAAPI_CONTEXT_USAGE_ENCODE) {
|
||||
if (context_update_config_encoder (context, &new_cip->config.encoder))
|
||||
reset_config = TRUE;
|
||||
} else if (new_cip->usage == GST_VAAPI_CONTEXT_USAGE_DECODE) {
|
||||
if (reset_surfaces)
|
||||
reset_config = TRUE;
|
||||
}
|
||||
|
||||
if (reset_surfaces)
|
||||
|
|
Loading…
Reference in a new issue