Skip to content

Commit

Permalink
fixed EOS
Browse files Browse the repository at this point in the history
  • Loading branch information
bwsw committed Oct 21, 2024
1 parent df2f36b commit 7176813
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adapters/python/sinks/metadata_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ def _write_video_frame(self, video_frame: VideoFrame):

def _write_eos(self, eos: EndOfStream):
self.logger.info('Received EOS from source %s.', eos.source_id)
writer = self.last_writer_per_source.get(eos.source_id)
_, writer = self.last_writer_per_source.get(eos.source_id) or (None, None)
if writer is None:
return False
result = writer.write_eos(eos)
Expand Down

0 comments on commit 7176813

Please sign in to comment.