mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-29 05:40:23 -04:00
Use pa_assert_se() when the containing code has side effects.
As reported by rantala. Closes #502 and #503
This commit is contained in:
parent
8a00c00943
commit
c08317772b
2 changed files with 2 additions and 2 deletions
|
|
@ -487,7 +487,7 @@ static void sink_input_kill_cb(pa_sink_input *i) {
|
|||
struct output *o;
|
||||
|
||||
pa_sink_input_assert_ref(i);
|
||||
pa_assert(o = i->userdata);
|
||||
pa_assert_se(o = i->userdata);
|
||||
|
||||
pa_module_unload_request(o->userdata->module, TRUE);
|
||||
output_free(o);
|
||||
|
|
|
|||
|
|
@ -163,7 +163,7 @@ static int jack_process(jack_nframes_t nframes, void *arg) {
|
|||
pa_assert(u);
|
||||
|
||||
for (c = 0; c < u->channels; c++)
|
||||
pa_assert(buffer[c] = jack_port_get_buffer(u->port[c], nframes));
|
||||
pa_assert_se(buffer[c] = jack_port_get_buffer(u->port[c], nframes));
|
||||
|
||||
/* We interleave the data and pass it on to the other RT thread */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue