Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
7e3a4e14
Commit
7e3a4e14
authored
Sep 24, 2008
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cosmetics.
parent
77dbb1a4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
src/input/clock.c
src/input/clock.c
+8
-8
No files found.
src/input/clock.c
View file @
7e3a4e14
...
...
@@ -122,7 +122,7 @@ static mtime_t ClockStreamToSystem( input_clock_t *cl, mtime_t i_clock )
if
(
!
cl
->
b_has_reference
)
return
0
;
return
(
i_clock
-
cl
->
ref
.
i_clock
)
*
cl
->
i_rate
/
INPUT_RATE_DEFAULT
+
return
(
i_clock
-
cl
->
ref
.
i_clock
)
*
cl
->
i_rate
/
INPUT_RATE_DEFAULT
+
cl
->
ref
.
i_system
;
}
...
...
@@ -131,10 +131,10 @@ static mtime_t ClockStreamToSystem( input_clock_t *cl, mtime_t i_clock )
*****************************************************************************
* Caution : a valid reference point is needed for this to operate.
*****************************************************************************/
static
mtime_t
ClockSystemToStream
(
input_clock_t
*
cl
,
mtime_t
i_
ck_
system
)
static
mtime_t
ClockSystemToStream
(
input_clock_t
*
cl
,
mtime_t
i_system
)
{
assert
(
cl
->
b_has_reference
);
return
(
i_
ck_
system
-
cl
->
ref
.
i_system
)
*
INPUT_RATE_DEFAULT
/
cl
->
i_rate
+
return
(
i_system
-
cl
->
ref
.
i_system
)
*
INPUT_RATE_DEFAULT
/
cl
->
i_rate
+
cl
->
ref
.
i_clock
;
}
...
...
@@ -142,11 +142,11 @@ static mtime_t ClockSystemToStream( input_clock_t *cl, mtime_t i_ck_system )
* ClockSetReference: writes a new clock reference
*****************************************************************************/
static
void
ClockSetReference
(
input_clock_t
*
cl
,
mtime_t
i_clock
,
mtime_t
i_sysdate
)
mtime_t
i_clock
,
mtime_t
i_system
)
{
cl
->
b_has_reference
=
true
;
cl
->
ref
.
i_clock
=
i_clock
;
cl
->
ref
.
i_system
=
i_sys
date
;
cl
->
ref
.
i_system
=
i_sys
tem
;
}
/*****************************************************************************
...
...
@@ -206,9 +206,9 @@ void input_clock_SetPCR( input_clock_t *cl,
/* */
b_reset_reference
=
true
;
}
else
if
(
cl
->
last
.
i_clock
!=
0
&&
else
if
(
cl
->
last
.
i_clock
!=
0
&&
(
(
cl
->
last
.
i_clock
-
i_ck_stream
)
>
CR_MAX_GAP
||
(
cl
->
last
.
i_clock
-
i_ck_stream
)
<
-
CR_MAX_GAP
)
)
(
cl
->
last
.
i_clock
-
i_ck_stream
)
<
-
CR_MAX_GAP
)
)
{
/* Stream discontinuity, for which we haven't received a
* warning from the stream control facilities (dd-edited
...
...
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