projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4691a77
)
set thread_opaque to NULL when freeing it
author
Benoit Fouet
<benoit.fouet@free.fr>
Fri, 6 Jul 2007 15:17:52 +0000
(15:17 +0000)
committer
Benoit Fouet
<benoit.fouet@free.fr>
Fri, 6 Jul 2007 15:17:52 +0000
(15:17 +0000)
Originally committed as revision 9506 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/pthread.c
patch
|
blob
|
history
diff --git
a/libavcodec/pthread.c
b/libavcodec/pthread.c
index
00febde
..
244bb52
100644
(file)
--- a/
libavcodec/pthread.c
+++ b/
libavcodec/pthread.c
@@
-97,7
+97,7
@@
void avcodec_thread_free(AVCodecContext *avctx)
pthread_cond_destroy(&c->current_job_cond);
pthread_cond_destroy(&c->last_job_cond);
av_free(c->workers);
- av_free
(c
);
+ av_free
p(&avctx->thread_opaque
);
}
int avcodec_thread_execute(AVCodecContext *avctx, action_t* func, void **arg, int *ret, int job_count)