[vlc-devel] "equalizer-bands" corrupt/truncated occasionally

Rémi Denis-Courmont remi at remlab.net
Fri Jun 17 08:39:26 CEST 2011


On Fri, 17 Jun 2011 02:43:43 +0530, akash mehrotra
<mehrotra.akash at gmail.com> wrote:
> void Equalizer::setCoreBands()
> {
>     /**\todo smoothing */
> 
>     QString values;
>     for( int i = 0; i < BANDS; i++ )
>     {
>         const float f_val = (float)( bands[i]->value() ) / 10 - 20;
>         QString val = QString("%1").arg( f_val, 5, 'f', 1 );
>         printf("%d\n",bands[i]->value()/10-20);
>         band_texts[i]->setText( band_frequencies[i] + "\n" + val + "dB"
);
>         values += " " + val;

I might be wrong, but this line looks suspicious. How about this one?
        values += qfu(" ") + val;

-- 
Rémi Denis-Courmont
http://www.remlab.net/



More information about the vlc-devel mailing list