aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2004-05-26 20:04:49 +0000
committerMichael Niedermayer <michaelni@gmx.at>2004-05-26 20:04:49 +0000
commit12013f67c4559c94e6be616ae3d66a5af8db2395 (patch)
treedfa2d4b4d731733f699bfa0dfbcf9111cfdc4268
parentb876b5c5f7e78ceb62bdd61c3995fa2fa648869c (diff)
downloadffmpeg-12013f67c4559c94e6be616ae3d66a5af8db2395.tar.gz
10l fixes by ("Debabrata Banerjee" <davatar at comcast dot net>)
Originally committed as revision 3161 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavcodec/pthread.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/pthread.c b/libavcodec/pthread.c
index c5c6a27f89..d944912afb 100644
--- a/libavcodec/pthread.c
+++ b/libavcodec/pthread.c
@@ -87,7 +87,7 @@ void avcodec_thread_free(AVCodecContext *avctx)
pthread_mutex_lock(&c->current_job_lock);
c->done = 1;
- pthread_cond_signal(&c->current_job_cond);
+ pthread_cond_broadcast(&c->current_job_cond);
pthread_mutex_unlock(&c->current_job_lock);
for (i=0; i<avctx->thread_count; i++)
@@ -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_freep(c);
+ av_free(c);
}
int avcodec_thread_execute(AVCodecContext *avctx, action_t* func, void **arg, int *ret, int job_count)