Projects
Multimedia
pulseaudio-dlna
pulseaudio-dlna-0.5.0-fix-filter-device-option....
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File pulseaudio-dlna-0.5.0-fix-filter-device-option.patch of Package pulseaudio-dlna (Revision 15)
Currently displaying revision
15
,
Show latest
From f5d5ee245f755bf5f1ca36f5e5120f6600f74d49 Mon Sep 17 00:00:00 2001 From: Massimo Mund <mo@lancode.de> Date: Tue, 15 Mar 2016 13:42:40 +0100 Subject: [PATCH] Fixed the --filter-device option --- pulseaudio_dlna/holder.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pulseaudio_dlna/holder.py b/pulseaudio_dlna/holder.py index e888271..2f5e658 100644 --- a/pulseaudio_dlna/holder.py +++ b/pulseaudio_dlna/holder.py @@ -33,7 +33,7 @@ def __init__( self.plugins = plugins self.stream_ip = stream_ip self.stream_port = stream_port - self.device_filter = device_filter or [] + self.device_filter = device_filter or None self.device_config = device_config or {} self.message_queue = message_queue self.devices = {} @@ -90,7 +90,8 @@ def add_device(self, device): if self.stream_ip and self.stream_port: device.set_server_location( self.stream_ip, self.stream_port) - if device.name not in self.device_filter: + if not self.device_filter or \ + device.name in self.device_filter: if config: logger.info( 'Using device configuration:\n{}'.format(
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.