Skip to content

Commit

Permalink
Update play.py
Browse files Browse the repository at this point in the history
fix bug
  • Loading branch information
JiehangXie committed Dec 23, 2021
1 parent 29c73fd commit f830d09
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions play.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ def PlayVideo(video_path):
k=0
for i in range(int(frame_num)):
grabbed, frame=video.read()
audio_frame, val = player.get_frame()
#print(audio_frame)
audio_frame, val = player.get_frame(force_refresh=False)
#print(audio_frame,val)
if audio_frame is None and k>10:
break
else:
Expand Down

0 comments on commit f830d09

Please sign in to comment.