diff options
author | Daniel Charles <daniel.charles@intel.com> | 2016-07-28 17:11:54 -0700 |
---|---|---|
committer | Sean V Kelley <seanvk@posteo.de> | 2016-07-29 14:35:05 -0700 |
commit | 4307b27248d67077036b64614515bf7f84273676 (patch) | |
tree | 72b7d40c917abec247237fa1871ff7497de4f550 | |
parent | 9fc4b6675c42df9002279fbc85985dcdd7510525 (diff) |
i965_encoder: return a failing status
VAStatus when calling vme_pipeline was silently failing
Signed-off-by: Daniel Charles <daniel.charles@intel.com>
Reviewed-by: Sean V Kelley <seanvk@posteo.de>
-rw-r--r-- | src/i965_encoder.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/i965_encoder.c b/src/i965_encoder.c index 1088f08..361aa93 100644 --- a/src/i965_encoder.c +++ b/src/i965_encoder.c @@ -721,10 +721,12 @@ intel_encoder_end_picture(VADriverContextP ctx, if((encoder_context->vme_context && encoder_context->vme_pipeline)) { vaStatus = encoder_context->vme_pipeline(ctx, profile, encode_state, encoder_context); + if (vaStatus != VA_STATUS_SUCCESS) + return vaStatus; } - if (vaStatus == VA_STATUS_SUCCESS) - encoder_context->mfc_pipeline(ctx, profile, encode_state, encoder_context); + encoder_context->mfc_pipeline(ctx, profile, encode_state, encoder_context); + return VA_STATUS_SUCCESS; } |