summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArun Raghavan <git@arunraghavan.net>2016-04-25 16:51:53 +0530
committerArun Raghavan <git@arunraghavan.net>2016-05-06 13:43:48 +0530
commit87048cc334218e8f33ad4b52f339a0bb27634fb1 (patch)
treefedd6427c2bee0285b04ab5fe262434ed3f49859
parentccc83b6cd7ab14e10f5fec72255a5a9786c277f9 (diff)
downloadpulseaudio-87048cc334218e8f33ad4b52f339a0bb27634fb1.tar.gz
module-filter-apply: Remove some dead code
We never actually pass restore=true, so might as well remove any code that deals with that case. Signed-off-by: Arun Raghavan <git@arunraghavan.net>
-rw-r--r--src/modules/module-filter-apply.c16
1 files changed, 6 insertions, 10 deletions
diff --git a/src/modules/module-filter-apply.c b/src/modules/module-filter-apply.c
index d09efb4ca..727cc2025 100644
--- a/src/modules/module-filter-apply.c
+++ b/src/modules/module-filter-apply.c
@@ -270,17 +270,13 @@ static void trigger_housekeeping(struct userdata *u) {
u->housekeeping_time_event = pa_core_rttime_new(u->core, pa_rtclock_now() + HOUSEKEEPING_INTERVAL, housekeeping_time_callback, u);
}
-static int do_move(pa_object *obj, pa_object *parent, bool restore, bool is_input) {
+static int do_move(pa_object *obj, pa_object *parent, bool is_input) {
if (is_input) {
- if (!restore)
- pa_sink_input_set_property(PA_SINK_INPUT(obj), "module-filter-apply.filter_device", PA_SINK(parent)->name);
-
- return pa_sink_input_move_to(PA_SINK_INPUT(obj), PA_SINK(parent), restore);
+ pa_sink_input_set_property(PA_SINK_INPUT(obj), "module-filter-apply.filter_device", PA_SINK(parent)->name);
+ return pa_sink_input_move_to(PA_SINK_INPUT(obj), PA_SINK(parent), false);
} else {
- if (!restore)
- pa_source_output_set_property(PA_SOURCE_OUTPUT(obj), "module-filter-apply.filter_device", PA_SOURCE(parent)->name);
-
- return pa_source_output_move_to(PA_SOURCE_OUTPUT(obj), PA_SOURCE(parent), restore);
+ pa_source_output_set_property(PA_SOURCE_OUTPUT(obj), "module-filter-apply.filter_device", PA_SOURCE(parent)->name);
+ return pa_source_output_move_to(PA_SOURCE_OUTPUT(obj), PA_SOURCE(parent), false);
}
}
@@ -308,7 +304,7 @@ static void move_object_for_filter(pa_object *o, struct filter* filter, bool res
pa_proplist_sets(pl, PA_PROP_FILTER_APPLY_MOVING, "1");
- if (do_move(o, parent, false, is_sink_input) < 0)
+ if (do_move(o, parent, is_sink_input) < 0)
pa_log_info("Failed to move %s for \"%s\" to <%s>.", is_sink_input ? "sink-input" : "source-output",
pa_strnull(pa_proplist_gets(pl, PA_PROP_APPLICATION_NAME)), name);
else