mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
remove redundant check
This commit is contained in:
parent
85b83e8e8c
commit
2c5a33d9d8
1 changed files with 6 additions and 9 deletions
|
|
@ -604,8 +604,6 @@ void pa_command_overflow_or_underflow(pa_pdispatch *pd, uint32_t command, PA_GCC
|
||||||
|
|
||||||
request_auto_timing_update(s, TRUE);
|
request_auto_timing_update(s, TRUE);
|
||||||
|
|
||||||
if (s->state == PA_STREAM_READY) {
|
|
||||||
|
|
||||||
if (command == PA_COMMAND_OVERFLOW) {
|
if (command == PA_COMMAND_OVERFLOW) {
|
||||||
if (s->overflow_callback)
|
if (s->overflow_callback)
|
||||||
s->overflow_callback(s, s->overflow_userdata);
|
s->overflow_callback(s, s->overflow_userdata);
|
||||||
|
|
@ -613,7 +611,6 @@ void pa_command_overflow_or_underflow(pa_pdispatch *pd, uint32_t command, PA_GCC
|
||||||
if (s->underflow_callback)
|
if (s->underflow_callback)
|
||||||
s->underflow_callback(s, s->underflow_userdata);
|
s->underflow_callback(s, s->underflow_userdata);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
finish:
|
finish:
|
||||||
pa_context_unref(c);
|
pa_context_unref(c);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue