Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
3b0f342f
Commit
3b0f342f
authored
Aug 16, 2014
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ts: use timezone and fix thread-safety
parent
ae3c84e8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
modules/demux/ts.c
modules/demux/ts.c
+5
-6
No files found.
modules/demux/ts.c
View file @
3b0f342f
...
...
@@ -3111,12 +3111,11 @@ static void EITCallBack( demux_t *p_demux,
if
(
p_sys
->
i_tdt_delta
==
0
)
p_sys
->
i_tdt_delta
=
CLOCK_FREQ
*
(
i_start
+
i_duration
-
5
)
-
mdate
();
//i_start -= 9 * 60 * 60; // JST -> UTC
time_t
timer
=
time
(
NULL
);
int64_t
diff
=
difftime
(
mktime
(
localtime
(
&
timer
)
),
mktime
(
gmtime
(
&
timer
)
)
);
i_start
-=
diff
;
i_tot_time
=
(
mdate
()
+
p_sys
->
i_tdt_delta
)
/
CLOCK_FREQ
-
diff
;
i_tot_time
=
(
mdate
()
+
p_sys
->
i_tdt_delta
)
/
CLOCK_FREQ
;
tzset
();
// JST -> UTC
i_start
+=
timezone
;
// FIXME: what about DST?
i_tot_time
+=
timezone
;
if
(
p_evt
->
i_running_status
==
0x00
&&
(
i_start
-
5
<
i_tot_time
&&
...
...
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