[Ffmpeg-devel] swscale patch
Luca Abeni
lucabe72
Wed Jul 5 13:55:20 CEST 2006
Hi Michael,
On Wed, 2006-07-05 at 12:26 +0200, Michael Niedermayer wrote:
[...]
> > Would it be ok to put something like
> > static int inited;
> >
> > if (inited == 0) {
> > return;
>
> no, its if(inited) { ...
Of course; I typed too fast
[...]
> what about the sws_log() function? same situation, 2 libs or app+lib using
> sws with the log messages from one lib will end up being output over the
> functions of the other lib now lets think about 2 threads where one libs
> sws_log implementation isnt thread safe ...
> -> this one is easy, we have no choice sws_log must be put into the sws
> context, iam not sure why i didnt realize that earlier ...
Ok, while thinking about alloc & free, I am moving sws_log into struct
SwsContext
Thanks,
Luca
--
_____________________________________________________________________________
Copy this in your signature, if you think it is important:
N O W A R ! ! !
More information about the ffmpeg-devel
mailing list