[vlc-devel] [PATCH] Fixes occasional corruption of "equalizer-bands"
akash mehrotra
mehrotra.akash at gmail.com
Fri Jun 17 20:52:47 CEST 2011
Fixed
On Sat, Jun 18, 2011 at 12:12 AM, Laurent Aimar <fenrir at elivagar.org> wrote:
> On Sat, Jun 18, 2011 at 12:07:39AM +0530, akash mehrotra wrote:
> > Fixes occasional corruption of "equalizer-bands"
>
>
> > diff --git a/modules/gui/qt4/components/extended_panels.cpp
> b/modules/gui/qt4/components/extended_panels.cpp
> > index b3f5501..d58a164 100644
> > --- a/modules/gui/qt4/components/extended_panels.cpp
> > +++ b/modules/gui/qt4/components/extended_panels.cpp
> > @@ -1060,9 +1061,10 @@ char * Equalizer::createValuesFromPreset( int
> i_preset )
> > /* Create the QString in Qt */
> > for( int i = 0 ; i< BANDS ;i++ )
> > values += QString( " %1" ).arg(
> eqz_preset_10b[i_preset]->f_amp[i] );
> > -
> > + std::string s = values.toStdString();
> > + const char *psz_values=s.c_str();
> > /* Convert it to char * */
> > - return strdup( values.toAscii().constData() );
> > + return strdup( psz_values );
> I don't think this one is needed as the temporary object is only destroy
> at the end of the scope (ie when strdup() has returned).
>
> --
> fenrir
> _______________________________________________
> 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/20110618/b2d51c5e/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Fixes-occasional-corruption-of-equalizer-bands.patch
Type: application/octet-stream
Size: 978 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20110618/b2d51c5e/attachment.obj>
More information about the vlc-devel
mailing list