Skip to content

Commit

Permalink
Fix logic bug in stitch
Browse files Browse the repository at this point in the history
  • Loading branch information
ping committed May 27, 2017
1 parent 1a024aa commit 2ad54f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion instagram_private_api_extensions/live.py
Original file line number Diff line number Diff line change
Expand Up @@ -386,12 +386,12 @@ def stitch(self, output_filename,
# resolution changed detected
# push current generated file pair into sources
sources.append({'video': video_stream, 'audio': audio_stream})
prev_res = self.segment_meta[segment]
video_stream = os.path.join(
self.output_dir, video_stream_format.format(self.stream_id, len(sources)))
audio_stream = os.path.join(
self.output_dir, audio_stream_format.format(self.stream_id, len(sources)))

prev_res = self.segment_meta[segment]
file_mode = 'ab' if os.path.exists(video_stream) else 'wb'
seg_file = os.path.join(self.output_dir, segment)

Expand Down

0 comments on commit 2ad54f7

Please sign in to comment.