[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#498216: ffmpeg, mplayer (mipsel/loongson2f) stops with the error message "Segmentation fault." and fix patch



Fabian Greffrath <greffrath@leat.rub.de> writes:

> But then the code in allcodecs.c look rather senseless to me. Why should
> you test 'if (inited)' when you've just set it yourself to 0 by
> initializing it?

In order to ensure that no matter how often that function is called, the
code below that if is executed exatly once. Think Singleton-Pattern.

-- 
Gruesse/greetings,
Reinhard Tartler, KeyID 945348A4


Reply to: