<br><br><div class="gmail_quote">2011/6/17 Rémi Denis-Courmont <span dir="ltr"><<a href="mailto:remi@remlab.net">remi@remlab.net</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
On Fri, 17 Jun 2011 02:43:43 +0530, akash mehrotra<br>
<div class="im"><<a href="mailto:mehrotra.akash@gmail.com">mehrotra.akash@gmail.com</a>> wrote:<br>
</div><div class="im">> void Equalizer::setCoreBands()<br>
> {<br>
>     /**\todo smoothing */<br>
><br>
>     QString values;<br>
>     for( int i = 0; i < BANDS; i++ )<br>
>     {<br>
>         const float f_val = (float)( bands[i]->value() ) / 10 - 20;<br>
>         QString val = QString("%1").arg( f_val, 5, 'f', 1 );<br>
>         printf("%d\n",bands[i]->value()/10-20);<br>
>         band_texts[i]->setText( band_frequencies[i] + "\n" + val + "dB"<br>
);<br>
>         values += " " + val;<br>
<br>
</div>I might be wrong, but this line looks suspicious. How about this one?<br>
        values += qfu(" ") + val;<br></blockquote><div><br>This change doesnt help..  the corruption is still there <br><br>I'm not very sure, but the corruption seems to be happening in this line:<br>    const char *psz_values = values.toAscii().constData();<br>
<br>the length of "values" is correct till just before this, but after conversion, psz_values is often shorter than it should be<br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

<font color="#888888"><br>
--<br>
Rémi Denis-Courmont<br>
<a href="http://www.remlab.net/" target="_blank">http://www.remlab.net/</a><br>
_______________________________________________<br>
vlc-devel mailing list<br>
To unsubscribe or modify your subscription options:<br>
<a href="http://mailman.videolan.org/listinfo/vlc-devel" target="_blank">http://mailman.videolan.org/listinfo/vlc-devel</a><br>
</font></blockquote></div><br>