From dc6c272625c7801af68126bb1983207ad88400a5 Mon Sep 17 00:00:00 2001 From: Colin Guthrie Date: Tue, 17 May 2011 19:50:32 +0100 Subject: alsa-sink: Some trivial tidyups Mostly typo fixes but also a change to make a function relating to sink inputs use more generic variable names. --- src/pulsecore/sink-input.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/pulsecore/sink-input.c') diff --git a/src/pulsecore/sink-input.c b/src/pulsecore/sink-input.c index 553e3d97..9a43e044 100644 --- a/src/pulsecore/sink-input.c +++ b/src/pulsecore/sink-input.c @@ -1616,7 +1616,7 @@ int pa_sink_input_finish_move(pa_sink_input *i, pa_sink *dest, pa_bool_t save) { !pa_sample_spec_equal(&i->sample_spec, &dest->sample_spec) || !pa_channel_map_equal(&i->channel_map, &dest->channel_map)) { - /* Okey, we need a new resampler for the new sink */ + /* Okay, we need a new resampler for the new sink */ if (!(new_resampler = pa_resampler_new( i->core->mempool, @@ -1664,6 +1664,7 @@ int pa_sink_input_finish_move(pa_sink_input *i, pa_sink *dest, pa_bool_t save) { &i->sink->silence); i->actual_resample_method = new_resampler ? pa_resampler_get_method(new_resampler) : PA_RESAMPLER_INVALID; } + pa_sink_update_status(dest); update_volume_due_to_moving(i, dest); @@ -1678,7 +1679,6 @@ int pa_sink_input_finish_move(pa_sink_input *i, pa_sink *dest, pa_bool_t save) { /* Notify everyone */ pa_hook_fire(&i->core->hooks[PA_CORE_HOOK_SINK_INPUT_MOVE_FINISH], i); - pa_subscription_post(i->core, PA_SUBSCRIPTION_EVENT_SINK_INPUT|PA_SUBSCRIPTION_EVENT_CHANGE, i->index); return 0; -- cgit