Ticket #5096: libs_libmythtv_RingBuffer.cpp-init-estbitrate.patch

File libs_libmythtv_RingBuffer.cpp-init-estbitrate.patch, 621 bytes (added by Erik Hovland <erik@…>, 12 years ago)

init variable

  • libs/libmythtv/RingBuffer.cpp

    In RingBuffer::CalcReadAheadThresh, estbitrate is not initialized.
    
    From: Erik Hovland <erik@hovland.org>
    
    
    ---
    
     libs/libmythtv/RingBuffer.cpp |    2 +-
     1 files changed, 1 insertions(+), 1 deletions(-)
    
    diff --git a/libs/libmythtv/RingBuffer.cpp b/libs/libmythtv/RingBuffer.cpp
    index fd205e4..716d2d0 100644
    a b void RingBuffer::UpdatePlaySpeed(float play_speed) 
    531531 */
    532532void RingBuffer::CalcReadAheadThresh(void)
    533533{
    534     uint estbitrate;
     534    uint estbitrate = 0;
    535535
    536536    pthread_rwlock_wrlock(&rwlock);
    537537    wantseek       = false;