Ticket #46730: 0001-Don-t-crash-if-pa_stream_peek-returns-NULL.patch

File 0001-Don-t-crash-if-pa_stream_peek-returns-NULL.patch, 458 bytes (added by RJVB (René Bertin), 10 years ago)

patch from the Ubuntu package

  • src/mainwindow.cc

    From: Christer Stenbrenden <christer@uggwar.net>
    Date: Tue, 25 Feb 2014 22:14:13 +0100
    Subject: Don't crash if pa_stream_peek returns NULL
    
    ---
     src/mainwindow.cc | 4 ++--
     1 file changed, 2 insertions(+), 2 deletions(-)
    
    a b  
    488488        return;
    489489    }
    490490
     491    if (!data) {
     492        pa_stream_drop(s);
     493        return;
     494    }
     495
    491496    assert(length > 0);
    492497    assert(length % sizeof(float) == 0);
    493498