Updated code to only ask for input stream when starting recording
This commit is contained in:
parent
89a29c6d41
commit
c9580b2c28
@ -283,14 +283,13 @@ class AvStreamProcess(mp.Process):
|
||||
return
|
||||
|
||||
elif msg == StreamMsg.getStreamMetaData:
|
||||
(avtype,) = data
|
||||
stream = self.streams[avtype]
|
||||
if stream is not None:
|
||||
self.sendAllQueues(
|
||||
StreamMsg.streamMetaData, avtype, stream.streammetadata
|
||||
)
|
||||
else:
|
||||
self.sendAllQueues(StreamMsg.streamMetaData, avtype, None)
|
||||
(avtype, ) = data
|
||||
duplex = self.streams[AvType.audio_duplex]
|
||||
stream = duplex if duplex else self.streams[avtype]
|
||||
|
||||
self.sendAllQueues(
|
||||
StreamMsg.streamMetaData, avtype, stream.streammetadata
|
||||
)
|
||||
|
||||
elif msg == StreamMsg.startStream:
|
||||
avtype, daqconfig = data
|
||||
|
@ -84,7 +84,6 @@ class Recording:
|
||||
|
||||
# Try to obtain stream metadata
|
||||
streammgr.getStreamStatus(AvType.audio_input)
|
||||
streammgr.getStreamStatus(AvType.audio_duplex)
|
||||
|
||||
self.ad = None
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user