Rename variable flmux to flvmux.
authorPhilipp Spitzer <philipp@spitzer.priv.at>
Wed, 16 Jun 2021 21:18:19 +0000 (23:18 +0200)
committerPhilipp Spitzer <philipp@spitzer.priv.at>
Wed, 16 Jun 2021 21:18:19 +0000 (23:18 +0200)
lagarde.py

index 94ea57e64ca76442a8516df8b8984b4ee40beb65..f8c398f8bffac574fdd2936e7231cb46e5457146 100755 (executable)
@@ -170,16 +170,16 @@ class WebRTCClient:
                 enc.set_property('tune', 'zerolatency')
                 capsfilter = Gst.ElementFactory.make('capsfilter')
                 capsfilter.set_properties(Gst.Caps.from_string('video/x-h264,stream-format=(string)avc'))
-                flmux = Gst.ElementFactory.make('flvmux')
+                flvmux = Gst.ElementFactory.make('flvmux')
                 sink = Gst.ElementFactory.make('rtmpsink')
                 sink.set_property('location', self.rtmp_uri)
-                assert q and conv and enc and capsfilter and flmux and sink
+                assert q and conv and enc and capsfilter and flvmux and sink
 
                 self.pipe.add(q)
                 self.pipe.add(conv)
                 self.pipe.add(enc)
                 self.pipe.add(capsfilter)
-                self.pipe.add(flmux)
+                self.pipe.add(flvmux)
                 self.pipe.add(sink)
 
                 q_pad_sink = q.get_static_pad('sink')
@@ -193,9 +193,9 @@ class WebRTCClient:
                 assert ok
                 ok = enc.link(capsfilter)
                 assert ok
-                ok = capsfilter.link(flmux)
+                ok = capsfilter.link(flvmux)
                 assert ok
-                ok = flmux.link(sink)
+                ok = flvmux.link(sink)
                 assert ok
                 self.pipe.set_state(Gst.State.PLAYING)
                 self.pipe.sync_children_states()