sink-input: Allow sink_input_set_rate() to be called during a move
authorGeorg Chini <georg@chini.tk>
Tue, 11 Apr 2017 19:48:31 +0000 (21:48 +0200)
committerGeorg Chini <georg@chini.tk>
Tue, 11 Apr 2017 19:48:31 +0000 (21:48 +0200)
commit96cae04cedd1e0e4fd996cf9ea4f7519a21fdc71
tree4974e8e0ee1e88933d0486f56bbc398bea79f5c4
parent5bc363d4b84ccbb07727d7d0603598a3b664b1b1
sink-input: Allow sink_input_set_rate() to be called during a move

During a move sink_input->sink is not valid. This leads to a crash when
sink_input_set_rate() is called from the moving() callback. This patch
fixes the problem.
src/pulsecore/sink-input.c