Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
mediastreamer2
Commits
ad376cf2
Commit
ad376cf2
authored
May 20, 2014
by
Ghislain MARY
Browse files
Define ms_get_cur_time_ms().
parent
31e57342
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
include/mediastreamer2/mscommon.h
include/mediastreamer2/mscommon.h
+1
-0
src/base/msticker.c
src/base/msticker.c
+1
-3
No files found.
include/mediastreamer2/mscommon.h
View file @
ad376cf2
...
...
@@ -104,6 +104,7 @@ static inline void ms_debug(const char *fmt,...)
typedef
ortpTimeSpec
MSTimeSpec
;
#define ms_get_cur_time ortp_get_cur_time
#define ms_get_cur_time_ms ortp_get_cur_time_ms
struct
_MSList
{
struct
_MSList
*
next
;
...
...
src/base/msticker.c
View file @
ad376cf2
...
...
@@ -296,9 +296,7 @@ static void remove_tasks_for_filter(MSTicker *ticker, MSFilter *f){
}
static
uint64_t
get_cur_time_ms
(
void
*
unused
){
MSTimeSpec
ts
;
ms_get_cur_time
(
&
ts
);
return
(
ts
.
tv_sec
*
1000LL
)
+
((
ts
.
tv_nsec
+
500000LL
)
/
1000000LL
);
return
ms_get_cur_time_ms
();
}
static
void
sleepMs
(
int
ms
){
...
...
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