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) |
---|
-
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 488 488 return; 489 489 } 490 490 491 if (!data) { 492 pa_stream_drop(s); 493 return; 494 } 495 491 496 assert(length > 0); 492 497 assert(length % sizeof(float) == 0); 493 498