OSDN Git Service

fix a threading issue with avcodec_open/close
authorjstebbins <jstebbins@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Fri, 12 Dec 2008 18:54:36 +0000 (18:54 +0000)
committerjstebbins <jstebbins@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Fri, 12 Dec 2008 18:54:36 +0000 (18:54 +0000)
commitd384725dbf227fe6222547f87dc9afca0afac7e4
tree7db84f17a253b6767552495b92ed6341000af62c
parent4ab4a27f9823a7b93cff0eba614d80653fce7335
fix a threading issue with avcodec_open/close
these functions can not be called from 2 threads simultaneosly.
made a wrapper function that holds a lock while making the call

git-svn-id: svn://localhost/HandBrake/trunk@2023 b64f7644-9d1e-0410-96f1-a4d463321fa5
libhb/decavcodec.c
libhb/decomb.c
libhb/deinterlace.c
libhb/encavcodec.c
libhb/hb.c
libhb/stream.c
libhb/sync.c