On Mon, 2016-02-29 at 15:46 +0530, [email protected] wrote:
>  void* pa_rtpoll_item_get_userdata(pa_rtpoll_item *i) {
>      pa_assert(i);
>  
> -    return i->userdata;
> +    return i->work_userdata;
>  }

I think it would make sense to rename the function to
pa_rtpoll_item_get_work_userdata().

>  static int asyncmsgq_read_before(pa_rtpoll_item *i) {
>      pa_assert(i);
>  
> -    if (pa_asyncmsgq_read_before_poll(i->userdata) < 0)
> +    if (pa_asyncmsgq_read_before_poll(i->work_userdata) < 0)

In the asyncmsgq read before and after callbacks you use work_userdata,
but in the write before and after callbacks you use
before/after_userdata. All of these userdatas are the same, so it
doesn't affect the behaviour, but it would be good to be consistent.

-- 
Tanu
_______________________________________________
pulseaudio-discuss mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss

Reply via email to