Skip to content

Commit

Permalink
set frame/positionBeforeRead to 0 on load
Browse files Browse the repository at this point in the history
  • Loading branch information
i-n-g-o committed Feb 8, 2019
1 parent b206ddd commit acfe524
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libs/openFrameworks/video/ofAVFoundationVideoPlayer.m
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,8 @@ - (BOOL)loadWithURL:(NSURL*)url async:(BOOL)bAsync {
bReady = NO;
bLoaded = NO;
bPlayStateBeforeLoad = NO;
frameBeforeReady = 0;
positionBeforeReady = 0.F;

// going to load
dispatch_semaphore_t sema = dispatch_semaphore_create(0);
Expand Down

0 comments on commit acfe524

Please sign in to comment.