st/va: Remove else case in vlVaEndPicture() made superfluous by c59628d11b
authorKai Wasserbäch <kai@dev.carbon-project.org>
Sat, 20 Aug 2016 16:14:53 +0000 (18:14 +0200)
committerChristian König <christian.koenig@amd.com>
Wed, 24 Aug 2016 08:35:20 +0000 (10:35 +0200)
Commit c59628d11b134fc016388a170880f7646e100d6f made the else statement
and duplication of the context->decoder->end_frame() call superfluous.

Cc: Boyuan Zhang <boyuan.zhang@amd.com>
Signed-off-by: Kai Wasserbäch <kai@dev.carbon-project.org>
Reviewed-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Boyuan Zhang <boyuan.zhang@amd.com>
src/gallium/state_trackers/va/picture.c

index 87567be10e7834975d421943ceeb34379761dd09..bbb559561f714633ef95e81124d59045a90a3252 100644 (file)
@@ -576,11 +576,9 @@ vlVaEndPicture(VADriverContextP ctx, VAContextID context_id)
       surf->frame_num_cnt = context->desc.h264enc.frame_num_cnt;
       surf->feedback = feedback;
       surf->coded_buf = coded_buf;
-      context->decoder->end_frame(context->decoder, context->target, &context->desc.base);
    }
-   else
-      context->decoder->end_frame(context->decoder, context->target, &context->desc.base);
 
+   context->decoder->end_frame(context->decoder, context->target, &context->desc.base);
    pipe_mutex_unlock(drv->mutex);
    return VA_STATUS_SUCCESS;
 }