diff options
Diffstat (limited to 'src/pulsecore/source.c')
-rw-r--r-- | src/pulsecore/source.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/pulsecore/source.c b/src/pulsecore/source.c index 5f57265c..0282828f 100644 --- a/src/pulsecore/source.c +++ b/src/pulsecore/source.c @@ -2045,6 +2045,10 @@ int pa_source_process_msg(pa_msgobject *object, int code, void *userdata, int64_ /* This message is sent from IO-thread and handled in main thread. */ pa_assert_ctl_context(); + /* Make sure we're not messing with main thread when no longer linked */ + if (!PA_SOURCE_IS_LINKED(s->state)) + return 0; + pa_source_get_volume(s, TRUE); pa_source_get_mute(s, TRUE); return 0; |