[PATCH] echo-cancel: Avoid segfaults due to invalid master sink or source

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, 2017-05-06 at 22:15 +0200, Georg Chini wrote:
> On 06.05.2017 22:06, Tanu Kaskinen wrote:
> > I made a strange interpretation, because what you really meant seemed
> > even more crazy. I forgot that module-switch-on-connect only moves
> > streams if they are routed to the default sink, and because of that
> > missing piece your explanation made no sense to me at all. I understand
> > the logic now.
> > 
> > Implementing your proposal doesn't seem that simple: what if the user
> > has set a filter sink as the default sink? Would you change the default
> >   sink just for the duration of the filter sink move?
> > 
> 
> I already implemented it and it is quite simple (using part of your
> patch).
> 
> The default sink will be set to the new sink by switch-on-connect
> anyway (even the configured default sink), so the previous user
> choice is irrelevant. I think however, that the simple logic of
> switch-on-connect should at least be changed so that in the case
> that the previous default sink was a filter then the streams should
> not be moved away from it (unless the new sink also is a filter).
> But this would be a matter of a different patch.
> 
> BTW did you see my other remark about switch-on-connect? It is
> somewhat hidden in another topic.

I forgot to reply to the last part... No, I don't think I saw that
other remark. What was that remark?

-- 
Tanu

https://www.patreon.com/tanuk


[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux