[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

On Tue, Sep  9, 2008 at 09:38:22 +0200, Fabian Greffrath wrote:

> Reinhard Tartler schrieb:
>> 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.
> Will the code be executed more than once if initialize it with "static  
> int inited=0;" (which is the proposed fix)? I fear so...
No.  The variable is static, it's initialized only once.  (But then, the
proposed 'fix' looks like a no-op to me.)


Reply to: