[pulseaudio-commits] [Git][pulseaudio/pulseaudio][master] sink, source: Skip filter streams while changing default sink/source
Tanu Kaskinen
gitlab at gitlab.freedesktop.org
Mon Oct 26 17:27:45 UTC 2020
Tanu Kaskinen pushed to branch master at PulseAudio / pulseaudio
Commits:
a9c6d43b by Arun Raghavan at 2020-10-26T12:00:35-04:00
sink, source: Skip filter streams while changing default sink/source
Streams connecting filter devices to their target devices shouldn't move
because of default settings (they are intended to be filtering the
specific device that are attached to).
Fixes: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/issues/1015
- - - - -
2 changed files:
- src/pulsecore/sink.c
- src/pulsecore/source.c
Changes:
=====================================
src/pulsecore/sink.c
=====================================
@@ -3973,6 +3973,10 @@ void pa_sink_move_streams_to_default_sink(pa_core *core, pa_sink *old_sink, bool
if (!i->sink)
continue;
+ /* Don't move sink-inputs which connect filter sinks to their target sinks */
+ if (i->origin_sink)
+ continue;
+
/* If default_sink_changed is false, the old sink became unavailable, so all streams must be moved. */
if (pa_safe_streq(old_sink->name, i->preferred_sink) && default_sink_changed)
continue;
=====================================
src/pulsecore/source.c
=====================================
@@ -3029,6 +3029,10 @@ void pa_source_move_streams_to_default_source(pa_core *core, pa_source *old_sour
if (!o->source)
continue;
+ /* Don't move source-outputs which connect sources to filter sources */
+ if (o->destination_source)
+ continue;
+
/* If default_source_changed is false, the old source became unavailable, so all streams must be moved. */
if (pa_safe_streq(old_source->name, o->preferred_source) && default_source_changed)
continue;
View it on GitLab: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/commit/a9c6d43b7ca3ffceab31bc3819903ee8c5de70c5
--
View it on GitLab: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/commit/a9c6d43b7ca3ffceab31bc3819903ee8c5de70c5
You're receiving this email because of your account on gitlab.freedesktop.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/pulseaudio-commits/attachments/20201026/22fb7ab6/attachment.htm>
More information about the pulseaudio-commits
mailing list