GUIPlayback checks vuMeterPts before it is initialized

Started by ajschult, December 02, 2012, 04:43:03 PM

Previous topic - Next topic

ajschult

GUIPlayback initializes vuMeterPts in |run|, but checks it under |initialize| (called right before |run|).  updateVu then might set vuMeterPts only to have |run| later re-initialize it.  valgrind complains


Conditional jump or move depends on uninitialised value(s)
   at 0x438D97: GUIPlayback::updateVu() (gui_play.cpp:439)
   by 0x438D1F: GUIPlayback::initializeAudio() (gui_play.cpp:411)
   by 0x438680: GUIPlayback::initialize() (gui_play.cpp:223)
   by 0x4383B7: GUI_PlayAvi() (gui_play.cpp:136)
   by 0x436BE6: HandleAction(Action) (in /usr/bin/avidemux3_qt4)