hardware/intel/libva
修訂 | 132fc526a38471422781559806fda234662c856a (tree) |
---|---|
時間 | 2013-05-28 17:46:48 |
作者 | Zhou Chang <chang.zhou@inte...> |
Commiter | Xiang, Haihao |
test/encode/avcenc: Wait upload thread exiting before release driver resource.
Signed-off-by: Zhou Chang <chang.zhou@intel.com>
@@ -256,6 +256,7 @@ static void alloc_encode_resource(FILE *yuv_fp) | ||
256 | 256 | |
257 | 257 | static void release_encode_resource() |
258 | 258 | { |
259 | + pthread_join(avcenc_context.upload_thread_id, NULL); | |
259 | 260 | free(newImageBuffer); |
260 | 261 | |
261 | 262 | // Release all the surfaces resource |