Ticket #4889: libs_libmythfreesurround_freesurround.cpp-init-processed_size.patch

File libs_libmythfreesurround_freesurround.cpp-init-processed_size.patch, 758 bytes (added by Erik Hovland <erik@…>, 12 years ago)

Initialize processed_size to -1 in FreeSurround? ctor

  • libs/libmythfreesurround/freesurround.cpp

    processed_size is not initialized in the constructor.
    
    From: Erik Hovland <erik@hovland.org>
    
    
    ---
    
     libs/libmythfreesurround/freesurround.cpp |    1 +
     1 files changed, 1 insertions(+), 0 deletions(-)
    
    diff --git a/libs/libmythfreesurround/freesurround.cpp b/libs/libmythfreesurround/freesurround.cpp
    index 07fe0d8..c2192ee 100644
    a b FreeSurround::FreeSurround(uint srate, bool moviemode, SurroundMode smode) : 
    185185        in_count(0),
    186186        out_count(0),
    187187        processed(true),
     188        processed_size(-1),
    188189        surround_mode(smode)
    189190{
    190191    VERBOSE(QString("FreeSurround::FreeSurround rate %1 moviemode %2").arg(srate).arg(moviemode));