GNOME Bugzilla – Bug 689079
pa_stream_peek can return NULL
Last modified: 2012-11-27 10:03:47 UTC
pa_stream_peek can return NULL, even though it's unusual. In the upcoming version of PulseAudio this has been clarified. In that case, don't crash.
Created attachment 229896 [details] [review] simple patch
Ah, sorry, I promised to do the patch for g-c-c myself, but totally forgot about that. The patch that you made does prevent crashing, but still if pa_stream_peek() returns NULL, the volume meter gets stuck, because you don't call pa_stream_drop() to skip the "hole".
Created attachment 229897 [details] [review] patch v2 Good point Tanu, this is a fixed version.
Looks good to me.