Fix audio pipe filename

This commit is contained in:
Nonoo 2020-10-27 14:20:43 +01:00
parent c008bb3b3d
commit 56f30cf1ab

View file

@ -195,7 +195,7 @@ func (a *audioStruct) init(devName string) error {
sinks, err := papipes.GetActiveSinks()
if err != nil {
for _, i := range sinks {
if i.Filename == a.source.Filename {
if i.Filename == a.sink.Filename {
i.Close()
}
}