diff options
Diffstat (limited to 'src/pulsecore')
-rw-r--r-- | src/pulsecore/core.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/pulsecore/core.c b/src/pulsecore/core.c index e01677d5d..454c56685 100644 --- a/src/pulsecore/core.c +++ b/src/pulsecore/core.c @@ -315,6 +315,9 @@ void pa_core_update_default_sink(pa_core *core) { pa_assert(core); PA_IDXSET_FOREACH(sink, core->sinks, idx) { + if (!PA_SINK_IS_LINKED(sink->state)) + continue; + if (!best) { best = sink; continue; @@ -399,6 +402,9 @@ void pa_core_update_default_source(pa_core *core) { pa_assert(core); PA_IDXSET_FOREACH(source, core->sources, idx) { + if (!PA_SOURCE_IS_LINKED(source->state)) + continue; + if (!best) { best = source; continue; |