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

akash mehrotra mehrotra.akash at gmail.com
Fri Jun 17 12:39:08 CEST 2011


2011/6/17 Rémi Denis-Courmont <remi at remlab.net>

> 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;
>

This change doesnt help..  the corruption is still there

I'm not very sure, but the corruption seems to be happening in this line:
    const char *psz_values = values.toAscii().constData();

the length of "values" is correct till just before this, but after
conversion, psz_values is often shorter than it should be

>
> --
> Rémi Denis-Courmont
> http://www.remlab.net/
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> http://mailman.videolan.org/listinfo/vlc-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20110617/8b709ebc/attachment.html>


More information about the vlc-devel mailing list