From affaee6ab75f165085b857b6cdcbfac1754078c6 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Wed, 6 Feb 2019 17:49:17 +0100 Subject: [PATCH] Forgot to override the default port when specified in media.start_streaming --- platypush/plugins/media/__init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/platypush/plugins/media/__init__.py b/platypush/plugins/media/__init__.py index 67e96394..b6a56817 100644 --- a/platypush/plugins/media/__init__.py +++ b/platypush/plugins/media/__init__.py @@ -367,10 +367,13 @@ class MediaPlugin(Plugin): 'terminating it first') self.stop_streaming() + if port is None: + port = self._streaming_port + self._streaming_started.clear() self._streaming_ended.clear() self._streaming_proc = subprocess.Popen( - [self._local_stream_bin, media, str(self._streaming_port)], + [self._local_stream_bin, media, str(port)], stdout=subprocess.PIPE, stderr=subprocess.STDOUT )