[pulseaudio-discuss] [PATCH] module-loopback: Prevent an infinite loop when rate adjusting is disabled

Colin Guthrie gmane at colin.guthr.ie
Sun Dec 12 12:46:46 PST 2010


'Twas brillig, and Maarten Lankhorst at 11/12/10 11:05 did gyre and gimble:
> ---
>  src/modules/module-loopback.c |    3 ++-
>  1 files changed, 2 insertions(+), 1 deletions(-)
> 
> diff --git a/src/modules/module-loopback.c b/src/modules/module-loopback.c
> index d94ea93..fee17f4 100644
> --- a/src/modules/module-loopback.c
> +++ b/src/modules/module-loopback.c
> @@ -503,7 +503,8 @@ static int sink_input_process_msg_cb(pa_msgobject *obj, int code, void *data, in
>  
>              pa_assert_ctl_context();
>  
> -            adjust_rates(u);
> +            if (u->adjust_time > 0)
> +                adjust_rates(u);
>              return 0;
>          }
>      }

Also Pushed. Thanks again.

Col


-- 

Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/

Day Job:
  Tribalogic Limited [http://www.tribalogic.net/]
Open Source:
  Mageia Contributor [http://www.mageia.org/]
  PulseAudio Hacker [http://www.pulseaudio.org/]
  Trac Hacker [http://trac.edgewall.org/]




More information about the pulseaudio-discuss mailing list