On 05/15/2013 02:28 PM, David Henningsson wrote:
> This fixes a later assertion failure in module-stream-restore.

There were no comments, so I pushed this one now.

>
> Buglink: https://bugs.launchpad.net/bugs/896602
> Signed-off-by: David Henningsson <david.hennings...@canonical.com>
> ---
>   src/pulsecore/sink-input.c    |    3 +++
>   src/pulsecore/source-output.c |    3 +++
>   2 files changed, 6 insertions(+)
>
> diff --git a/src/pulsecore/sink-input.c b/src/pulsecore/sink-input.c
> index 6131bd3..8b9ee72 100644
> --- a/src/pulsecore/sink-input.c
> +++ b/src/pulsecore/sink-input.c
> @@ -376,6 +376,9 @@ int pa_sink_input_new(
>           data->save_volume = FALSE;
>       }
>
> +    if (!data->volume_writable)
> +        data->save_volume = false;
> +
>       pa_return_val_if_fail(pa_cvolume_compatible(&data->volume, 
> &data->sample_spec), -PA_ERR_INVALID);
>
>       if (!data->muted_is_set)
> diff --git a/src/pulsecore/source-output.c b/src/pulsecore/source-output.c
> index d942419..96245c7 100644
> --- a/src/pulsecore/source-output.c
> +++ b/src/pulsecore/source-output.c
> @@ -309,6 +309,9 @@ int pa_source_output_new(
>           data->save_volume = FALSE;
>       }
>
> +    if (!data->volume_writable)
> +        data->save_volume = false;
> +
>       pa_return_val_if_fail(pa_cvolume_compatible(&data->volume, 
> &data->sample_spec), -PA_ERR_INVALID);
>
>       if (!data->volume_factor_is_set)
>


-- 
David Henningsson, Canonical Ltd.
https://launchpad.net/~diwic


** Changed in: pulseaudio (Ubuntu)
       Status: In Progress => Fix Committed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/896602

Title:
  pulseaudio crashed with SIGABRT in subscribe_callback()

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pulseaudio/+bug/896602/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to