Skip to content
This repository has been archived by the owner on Oct 7, 2021. It is now read-only.

Commit

Permalink
fix monitorWait method for android, fixes #520
Browse files Browse the repository at this point in the history
  • Loading branch information
tanersener committed Aug 10, 2020
1 parent 0f911a2 commit 3490446
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions android/app/src/main/cpp/mobileffmpeg.c
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,8 @@ void monitorWait(int milliSeconds) {
ts.tv_nsec = tp.tv_usec * 1000;
ts.tv_sec += milliSeconds / 1000;
ts.tv_nsec += (milliSeconds % 1000)*1000000;
ts.tv_sec += ts.tv_nsec / 1000000000L;
ts.tv_nsec = ts.tv_nsec % 1000000000L;

pthread_mutex_lock(&monitorMutex);
pthread_cond_timedwait(&monitorCondition, &monitorMutex, &ts);
Expand Down

0 comments on commit 3490446

Please sign in to comment.