Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
0d2e22a5
Commit
0d2e22a5
authored
Nov 25, 2006
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Compile fix
parent
03bccb3e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
19 deletions
+2
-19
src/misc/mtime.c
src/misc/mtime.c
+2
-19
No files found.
src/misc/mtime.c
View file @
0d2e22a5
...
@@ -160,7 +160,7 @@ mtime_t mdate( void )
...
@@ -160,7 +160,7 @@ mtime_t mdate( void )
freq
=
(
QueryPerformanceFrequency
(
&
buf
)
&&
freq
=
(
QueryPerformanceFrequency
(
&
buf
)
&&
(
freq
==
I64C
(
1193182
)
||
freq
==
I64C
(
3579545
)
)
)
(
freq
==
I64C
(
1193182
)
||
freq
==
I64C
(
3579545
)
)
)
?
buf
:
0
;
?
buf
.
QuadPart
:
0
;
}
}
if
(
freq
!=
0
)
if
(
freq
!=
0
)
...
@@ -231,27 +231,10 @@ void mwait( mtime_t date )
...
@@ -231,27 +231,10 @@ void mwait( mtime_t date )
clock_nanosleep
(
CLOCK_REALTIME
,
TIMER_ABSTIME
,
&
ts
,
NULL
);
clock_nanosleep
(
CLOCK_REALTIME
,
TIMER_ABSTIME
,
&
ts
,
NULL
);
#else
#else
mtime_t
usec_time
,
delay
;
mtime_t
delay
=
mdate
()
-
date
;
usec_time
=
mdate
();
delay
=
date
-
usec_time
;
if
(
delay
>
0
)
if
(
delay
>
0
)
msleep
(
delay
);
msleep
(
delay
);
struct
timeval
tv_date
;
mtime_t
delay
;
/* delay in msec, signed to detect errors */
/* see mdate() about gettimeofday() possible errors */
gettimeofday
(
&
tv_date
,
NULL
);
/* calculate delay and check if current date is before wished date */
delay
=
date
-
(
mtime_t
)
tv_date
.
tv_sec
*
1000000
-
(
mtime_t
)
tv_date
.
tv_usec
-
10000
;
if
(
delay
>
0
)
msleep
(
delay
);
#endif
#endif
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment