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
1fe4b1c3
Commit
1fe4b1c3
authored
Apr 14, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid POSIX-deprecated asctime_r()
parent
c8b5e32b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
modules/demux/mkv/matroska_segment_parse.cpp
modules/demux/mkv/matroska_segment_parse.cpp
+4
-5
No files found.
modules/demux/mkv/matroska_segment_parse.cpp
View file @
1fe4b1c3
...
...
@@ -772,16 +772,15 @@ void matroska_segment_c::ParseInfo( KaxInfo *info )
KaxDateUTC
&
date
=
*
(
KaxDateUTC
*
)
l
;
time_t
i_date
;
struct
tm
tmres
;
char
buffer
[
25
6
];
char
buffer
[
25
];
i_date
=
date
.
GetEpochDate
();
memset
(
buffer
,
0
,
256
);
if
(
gmtime_r
(
&
i_date
,
&
tmres
)
&&
asctime_r
(
&
tmres
,
buffer
)
)
strftime
(
buffer
,
sizeof
(
buffer
),
"%a %b %d %H:%M:%S %Y"
,
&
tmres
)
)
{
buffer
[
strlen
(
buffer
)
-
1
]
=
'\0'
;
psz_date_utc
=
strdup
(
buffer
);
msg_Dbg
(
&
sys
.
demuxer
,
"| | + Date=%s"
,
psz_date_utc
);
msg_Dbg
(
&
sys
.
demuxer
,
"| | + Date=%s"
,
buffer
);
}
}
else
if
(
MKV_IS_ID
(
l
,
KaxChapterTranslate
)
)
...
...
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