changeset 2035:e1b69326ae36 libavcodec

10l fixes by ("Debabrata Banerjee" <davatar at comcast dot net>)
author michael
date Wed, 26 May 2004 20:04:49 +0000
parents 9629c1180d5f
children 6a6c678517b3
files pthread.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/pthread.c	Wed May 26 19:42:00 2004 +0000
+++ b/pthread.c	Wed May 26 20:04:49 2004 +0000
@@ -87,7 +87,7 @@
     
     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 @@
     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)