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

Michael Niedermayer michaelni
Sat May 30 18:20:24 CEST 2009


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

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

It is not what we do, but why we do it that matters.
-------------- 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/8fd10ab6/attachment.pgp>



More information about the ffmpeg-devel mailing list