[Libva] [PATCH][libva-intel-driver] i965_encoder: return a failing status

Daniel Charles daniel.charles at intel.com
Fri Jul 29 00:11:54 UTC 2016


VAStatus when calling vme_pipeline was silently failing

Signed-off-by: Daniel Charles <daniel.charles at intel.com>
---
 src/i965_encoder.c | 6 ++++--
 1 file 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;
 }
 
-- 
2.5.5



More information about the Libva mailing list