diff options
author | Gwenole Beauchesne <gbeauchesne@splitted-desktop.com> | 2010-08-09 09:01:16 +0000 |
---|---|---|
committer | Gwenole Beauchesne <gbeauchesne@splitted-desktop.com> | 2010-08-09 09:01:16 +0000 |
commit | 485b8ad6bf8ac331f20087b618ad8a1b945156bd (patch) | |
tree | 5d515131f98e466574bda0d3a92ff46f05e59f0a | |
parent | 27f91915e9df8d15b59a56d683a904cfc9ee7cf6 (diff) |
Cosmetics.
-rw-r--r-- | src/vdpau_video.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/vdpau_video.c b/src/vdpau_video.c index 6c5f63e..4a7f9f8 100644 --- a/src/vdpau_video.c +++ b/src/vdpau_video.c @@ -493,8 +493,8 @@ VAStatus vdpau_DestroyContext(VADriverContextP ctx, VAContextID context) obj_context->render_targets = NULL; } - obj_context->context_id = -1; - obj_context->config_id = -1; + obj_context->context_id = VA_INVALID_ID; + obj_context->config_id = VA_INVALID_ID; obj_context->current_render_target = VA_INVALID_SURFACE; obj_context->picture_width = 0; obj_context->picture_height = 0; @@ -671,10 +671,13 @@ sync_surface( /* XXX: polling is bad but there currently is no alternative */ for (;;) { VASurfaceStatus va_surface_status; - VAStatus va_status = query_surface_status(driver_data, - obj_surface, - &va_surface_status); + VAStatus va_status; + va_status = query_surface_status( + driver_data, + obj_surface, + &va_surface_status + ); if (va_status != VA_STATUS_SUCCESS) return va_status; @@ -729,7 +732,6 @@ vdpau_SyncSurface3( if (obj_context->current_render_target == obj_surface->base.id) return VA_STATUS_ERROR_INVALID_CONTEXT; } - return sync_surface(driver_data, obj_surface); } |