Re: [pulseaudio-discuss] [PATCH v2 7/8] sink: move the streams to the default_sink when the sink is unlinked

2019-07-02 Thread Hui Wang
On 2019/6/30 下午8:15, Georg Chini wrote: On 17.01.19 07:53, Hui Wang wrote: When a sink is unlinked, all streams of this sink are moved to default_sink, this action is implemented in the core rather than modules now. Signed-off-by: Hui Wang ---   src/modules/module-stream-restore.c | 50 --

Re: [pulseaudio-discuss] [PATCH v2 3/8] sink-input: clear the preferred_sink if it is default_sink

2019-07-02 Thread Hui Wang
On 2019/6/30 下午6:47, Georg Chini wrote: On 17.01.19 07:53, Hui Wang wrote: When the user moves a stream to the current default sink, the preferred_sink should be set to NULL and module-stream-restore should clear the routing for that stream in the stream database. From that point on the stream

Re: [pulseaudio-discuss] [PATCH v2 2/8] sink-input: add a new API pa_sink_input_set_preferred_sink

2019-07-02 Thread Hui Wang
On 2019/6/30 下午6:44, Georg Chini wrote: Sorry for the late feedback. On 17.01.19 07:53, Hui Wang wrote: If the sink here is NULL, that means users want to clear the preferred_sink and move the sink-input to the default_sink, otherwise set the preferred_sink to the sink->name and move the sink-

Re: [pulseaudio-discuss] [PATCH v2 4/8] core: move sink-inputs conditionally when update default_sink

2019-07-02 Thread Georg Chini
On 17.01.19 07:53, Hui Wang wrote: When the default sink changes, the streams from the old default sink should be moved to the new default sink, unless the preferred_sink string is set to the old default sink and the active port of the old default sink is not unavailable Signed-off-by: Hui Wang

Re: [pulseaudio-discuss] [PATCH v2 4/8] core: move sink-inputs conditionally when update default_sink

2019-07-02 Thread Georg Chini
On 02.07.19 06:49, Tanu Kaskinen wrote: On Mon, 2019-07-01 at 08:48 +0200, Georg Chini wrote: On 01.07.19 08:03, Georg Chini wrote: On 01.07.19 07:08, Tanu Kaskinen wrote: On Sun, 2019-06-30 at 13:52 +0200, Georg Chini wrote: On 17.01.19 07:53, Hui Wang wrote: When the default sink changes,

Re: [pulseaudio-discuss] [PATCH v2 4/8] core: move sink-inputs conditionally when update default_sink

2019-07-02 Thread Georg Chini
On 02.07.19 08:43, Tanu Kaskinen wrote: On Mon, 2019-07-01 at 08:03 +0200, Georg Chini wrote: On 01.07.19 07:08, Tanu Kaskinen wrote: On Sun, 2019-06-30 at 13:52 +0200, Georg Chini wrote: On 17.01.19 07:53, Hui Wang wrote: When the default sink changes, the streams from the old default sink s