@@ -40,7 +40,7 @@ def get_qualities(self):
4040 ("mid" , "image/jpeg,width=1280,height=720,framerate=10/1" ),
4141 ("high" , "image/jpeg,width=1920,height=1080,framerate=10/1" ),
4242 ])
43- raise InvalidConfigError ("Unkown USB video device {:04x}:{:04x}" .format (* match ))
43+ raise InvalidConfigError ("Unknown USB video device {:04x}:{:04x}" .format (* match ))
4444
4545 def select_caps (self , hint = None ):
4646 default , variants = self .get_qualities ()
@@ -49,7 +49,7 @@ def select_caps(self, hint=None):
4949 if name == variant :
5050 return caps
5151 raise InvalidConfigError (
52- f"Unkown video format { variant } for device { self .video .vendor_id :04x} :{ self .video .model_id :04x} " # pylint: disable=line-too-long
52+ f"Unknown video format { variant } for device { self .video .vendor_id :04x} :{ self .video .model_id :04x} " # pylint: disable=line-too-long
5353 )
5454
5555 def get_pipeline (self , path , caps , controls = None ):
@@ -66,7 +66,7 @@ def get_pipeline(self, path, caps, controls=None):
6666 elif match == (0x534d , 0x2109 ):
6767 inner = None # just forward the jpeg frames
6868 else :
69- raise InvalidConfigError ("Unkown USB video device {:04x}:{:04x}" .format (* match ))
69+ raise InvalidConfigError ("Unknown USB video device {:04x}:{:04x}" .format (* match ))
7070
7171 pipeline = f"v4l2src device={ path } "
7272 if controls :
@@ -98,7 +98,7 @@ def stream(self, caps_hint=None, controls=None):
9898 stdout = subprocess .DEVNULL ,
9999 )
100100
101- # wait until one subprocess has termianted
101+ # wait until one subprocess has terminated
102102 while True :
103103 try :
104104 tx .wait (timeout = 0.1 )
0 commit comments