[FFmpeg-devel] [PATCH] avcodec thread safety fix

Michael Niedermayer michaelni
Sat May 30 18:28:10 CEST 2009


On Sat, May 30, 2009 at 06:29:59PM +0200, Andreas ?man wrote:
> Michael Niedermayer wrote:
> > On Sat, May 30, 2009 at 02:03:01PM +0200, Andreas ?man wrote:
> >> Michael Niedermayer wrote:
> >>> indent ...
> >> indeed ...
> > [...]
> >> @@ -657,6 +676,11 @@
> >>      av_freep(&avctx->priv_data);
> >>      avctx->codec = NULL;
> >>      entangled_thread_counter--;
> >> +
> >> +    /* Release any user-supplied mutex. */
> >> +    if (ff_lockmgr_cb) {
> >> +      (*ff_lockmgr_cb)(&codec_mutex, AV_LOCK_RELEASE);
> >> +    }
> >>      return 0;
> >>  }
> > 
> > indent
> 
> Embarrassing.. Apart from this, is there anything else you want to have
> fixed?

probably not, assuming noone else has any further comments

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

I hate to see young programmers poisoned by the kind of thinking
Ulrich Drepper puts forward since it is simply too narrow -- Roman Shaposhnik
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090530/3a3ace3b/attachment.pgp>



More information about the ffmpeg-devel mailing list