From 132fc526a38471422781559806fda234662c856a Mon Sep 17 00:00:00 2001 From: Zhou Chang Date: Fri, 29 Jul 2011 09:15:10 +0800 Subject: [PATCH] test/encode/avcenc: Wait upload thread exiting before release driver resource. Signed-off-by: Zhou Chang --- test/encode/avcenc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/test/encode/avcenc.c b/test/encode/avcenc.c index 49c1187..5a861d7 100644 --- a/test/encode/avcenc.c +++ b/test/encode/avcenc.c @@ -256,6 +256,7 @@ static void alloc_encode_resource(FILE *yuv_fp) static void release_encode_resource() { + pthread_join(avcenc_context.upload_thread_id, NULL); free(newImageBuffer); // Release all the surfaces resource -- 2.7.4