filter-apply: Eliminate nested and redundant hook events 33/170033/1
authorKimJeongYeon <jeongyeon.kim@samsung.com>
Sat, 9 Dec 2017 20:00:20 +0000 (21:00 +0100)
committerSangchul Lee <sc11.lee@samsung.com>
Tue, 13 Feb 2018 02:36:06 +0000 (11:36 +0900)
commit8c04cd7ef5a0f65a73410de8718c36627a9cf63d
tree22d96fc0902c0438dbb8271c2739be438f03dd6e
parent71d65c5258bf3e6c6bc45d4d245e2393ab2bb729
filter-apply: Eliminate nested and redundant hook events

original patch
 :https://github.com/pulseaudio/pulseaudio/commit/922f08b7872207d958d2b87726b096f02f594943

In proces(), the do_move() function calls pa_{sink_input,source_output}_set_property().
This triggers a call to {sink_input,source_output}_proplist_cb() which called process()
a second time.

This patch avoids the duplicate and nested call to process() by checking if
PA_PROP_FILTER_APPLY_MOVING is set in {sink_input,source_output}_proplist_cb().

Change-Id: I41dc6263057ffce5d9cd8a35964554c06fe223a1
src/modules/module-filter-apply.c