Forgot to override the default port when specified in media.start_streaming

This commit is contained in:
Fabio Manganiello 2019-02-06 17:49:17 +01:00
parent 86dc7f240a
commit affaee6ab7

View file

@ -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
)