source/sink: Don't let pa_{sink, source}_get_latency_within_thread() return -1 if...
authorGeorg Chini <georg@chini.tk>
Mon, 17 Apr 2017 17:48:37 +0000 (19:48 +0200)
committerGeorg Chini <georg@chini.tk>
Mon, 17 Apr 2017 17:48:37 +0000 (19:48 +0200)
commita5fccd4645729c06db2caccb67149f2e07598300
tree9b32922ef33a354aa37ffec0637f2d43c29c5231
parent65f7ca44148e8c79fa965a6ecbc889e3f9668178
source/sink: Don't let pa_{sink, source}_get_latency_within_thread() return -1 if process_msg() fails

None of the callers checks the return value anyway. Return the offset only
if message processing fails. This is in preparation for the next patch.
src/pulsecore/sink.c
src/pulsecore/source.c