]> git.scottworley.com Git - srec/commitdiff
Rename: Recording → Stream
authorScott Worley <scottworley@scottworley.com>
Mon, 6 Oct 2025 06:18:44 +0000 (23:18 -0700)
committerScott Worley <scottworley@scottworley.com>
Mon, 6 Oct 2025 06:18:44 +0000 (23:18 -0700)
srec.py

diff --git a/srec.py b/srec.py
index e9054838af18172c5e785162eab43c62dd7c1934..8207c91352fa434fdc32c6ebf971bec236d4cafe 100644 (file)
--- a/srec.py
+++ b/srec.py
@@ -20,7 +20,7 @@ from gi.repository import GLib  # nopep8 pylint: disable=wrong-import-position
 
 
 @dataclass
-class Recording:
+class Stream:
     process: subprocess.Popen[bytes]
 
     def stop(self) -> None:
@@ -34,7 +34,7 @@ class Recording:
         self.process.wait()
 
 
-recording: Recording | None = None
+recording: Stream | None = None
 
 
 def make_filename() -> str:
@@ -86,7 +86,7 @@ def on_start_recording(_: Gtk.Button, stack: Gtk.Stack) -> None:
     command = (['ffmpeg', '-framerate', '25'] + video_source(stack) +
                ['-f', 'pulse', '-ac', '2', '-i', 'default', filename])
     # pylint: disable=consider-using-with
-    recording = Recording(
+    recording = Stream(
         process=subprocess.Popen(command, stdin=subprocess.PIPE))
     stack.set_visible_child_name("recording")