filter-apply: Eliminate nested and redundant hook events
authorKimJeongYeon <jeongyeon.kim@samsung.com>
Sat, 9 Dec 2017 20:00:20 +0000 (21:00 +0100)
committerGeorg Chini <georg@chini.tk>
Sat, 9 Dec 2017 20:23:27 +0000 (21:23 +0100)
commit922f08b7872207d958d2b87726b096f02f594943
tree9570a9ebaaaa419bcabe159b6992d58c28d53cd6
parente29068067a91eb6d8ed0041692e2a9b343587084
filter-apply: Eliminate nested and redundant hook events

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().
src/modules/module-filter-apply.c