Skip to content

Commit

Permalink
stream_processor.py: don't skip non-consecutive sessions; leave to ap…
Browse files Browse the repository at this point in the history
…plications
  • Loading branch information
francisyyan committed Aug 21, 2019
1 parent 6101c4b commit 1a162c9
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/scripts/stream_processor.py
Expand Up @@ -297,14 +297,6 @@ def update_map_list(self, ts, session):
def process_video_sent_pt(self, pt, ts, session):
video_ts = int(pt['video_ts'])

# if out[session] is not empty, then last_ts must exist
if self.out[session]:
last_ts = video_ts - VIDEO_DURATION
if last_ts not in self.out[session]:
sys.stderr.write('Warning: skipped non-consecutive session {}\n'
.format(session))
return

self.out[session][video_ts] = {}
sv = self.out[session][video_ts] # short name

Expand Down

0 comments on commit 1a162c9

Please sign in to comment.