hardware/intel/libva
修訂 | dd9c332de70aaf8aedec5ea78f94606e151c2d23 (tree) |
---|---|
時間 | 2010-07-12 14:27:48 |
作者 | Gwenole Beauchesne <gbeauchesne@spli...> |
Commiter | Xiang, Haihao |
Fix vaTerminate().
@@ -292,8 +292,8 @@ i965_media_terminate(VADriverContextP ctx) | ||
292 | 292 | struct i965_media_state *media_state = &i965->media_state; |
293 | 293 | int i; |
294 | 294 | |
295 | - assert(media_state->free_private_context); | |
296 | - media_state->free_private_context(&media_state->private_context); | |
295 | + if (media_state->free_private_context) | |
296 | + media_state->free_private_context(&media_state->private_context); | |
297 | 297 | |
298 | 298 | for (i = 0; i < MAX_MEDIA_SURFACES; i++) { |
299 | 299 | dri_bo_unreference(media_state->surface_state[i].bo); |