]> git.scottworley.com Git - srec/blobdiff - srec.py
Turns out we don't need to track filename in Recording
[srec] / srec.py
diff --git a/srec.py b/srec.py
index bacc1df5654fbffd2c8a8b4765abcc87e420f0b8..35efcaf19e451f101eb77a8a024c241c41c13a7d 100644 (file)
--- a/srec.py
+++ b/srec.py
@@ -20,7 +20,6 @@ from gi.repository import GLib  # nopep8 pylint: disable=wrong-import-position
 
 @dataclass
 class Recording:
-    filename: str
     process: subprocess.Popen[bytes]
 
 
@@ -77,7 +76,6 @@ def on_start_recording(_: Gtk.Button, stack: Gtk.Stack) -> None:
                ['-f', 'pulse', '-ac', '2', '-i', 'default', filename])
     # pylint: disable=consider-using-with
     recording = Recording(
-        filename=filename,
         process=subprocess.Popen(command, stdin=subprocess.PIPE))
     stack.set_visible_child_name("recording")
 
@@ -106,7 +104,7 @@ def make_button(label: str, action: Callable[[
 
 
 def make_share_control() -> Gtk.CheckButton:
-    can_share = os.path.exists('/sys/module/v4l2looback')
+    can_share = os.path.exists('/sys/module/v4l2loopback')
     control = Gtk.CheckButton(
         label='Share Webcam', sensitive=can_share, active=can_share)
     control.set_margin_start(20)