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

Sean V Kelley seanvk at posteo.de
Fri Jul 29 21:38:49 UTC 2016


On Thu, 2016-07-28 at 17:11 -0700, Daniel Charles wrote:
> VAStatus when calling vme_pipeline was silently failing
> 
> > Signed-off-by: Daniel Charles <daniel.charles at intel.com>

Thanks, applied.

Sean

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libva/attachments/20160729/30da3eaf/attachment.html>


More information about the Libva mailing list