Re: Bug#498216: ffmpeg, mplayer (mipsel/loongson2f) stops with the error message "Segmentation fault." and fix patch
- To: Fabian Greffrath <greffrath@leat.rub.de>, 498216@bugs.debian.org
- Cc: Reinhard Tartler <siretart@tauware.de>, 刘世伟 <liushiwei@gmail.com>, debian-mips@lists.debian.org
- Subject: Re: Bug#498216: ffmpeg, mplayer (mipsel/loongson2f) stops with the error message "Segmentation fault." and fix patch
- From: Julien Cristau <jcristau@debian.org>
- Date: Tue, 9 Sep 2008 09:32:34 +0100
- Message-id: <[🔎] 20080909083234.GA15531@patate.is-a-geek.org>
- Mail-followup-to: Julien Cristau <jcristau@debian.org>, Fabian Greffrath <greffrath@leat.rub.de>, 498216@bugs.debian.org, Reinhard Tartler <siretart@tauware.de>, 刘世伟 <liushiwei@gmail.com>, debian-mips@lists.debian.org
- In-reply-to: <[🔎] 48C627EE.207@leat.rub.de>
- References: <6dfd3df00809080133n654531e2p22bf4cfcb4f6bc92@mail.gmail.com> <48C5472C.2090303@leat.rub.de> <[🔎] 87ljy2jqfw.fsf@faui44a.informatik.uni-erlangen.de> <[🔎] 48C61A9F.90506@leat.rub.de> <[🔎] 87y721iz0q.fsf@faui44a.informatik.uni-erlangen.de> <[🔎] 48C627EE.207@leat.rub.de>
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.)
Cheers,
Julien
Reply to: