Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
92ee1ca0
Commit
92ee1ca0
authored
Apr 28, 2005
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* record: grrr, support for system that doesn't have localtime_r.
parent
16b435f0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
modules/access_filter/record.c
modules/access_filter/record.c
+11
-0
No files found.
modules/access_filter/record.c
View file @
92ee1ca0
...
@@ -325,8 +325,19 @@ static void Dump( access_t *p_access, uint8_t *p_buffer, int i_buffer )
...
@@ -325,8 +325,19 @@ static void Dump( access_t *p_access, uint8_t *p_buffer, int i_buffer )
time_t
t
=
time
(
NULL
);
time_t
t
=
time
(
NULL
);
struct
tm
l
;
struct
tm
l
;
#ifdef HAVE_LOCALTIME_R
if
(
!
localtime_r
(
&
t
,
&
l
)
)
if
(
!
localtime_r
(
&
t
,
&
l
)
)
memset
(
&
l
,
0
,
sizeof
(
l
)
);
memset
(
&
l
,
0
,
sizeof
(
l
)
);
#else
/* Grrr */
{
struct
tm
*
p_l
=
localtime
(
&
t
);
if
(
p_l
)
l
=
*
p_l
;
else
memset
(
&
l
,
0
,
sizeof
(
l
)
);
}
#endif
p_input
=
vlc_object_find
(
p_access
,
VLC_OBJECT_INPUT
,
FIND_PARENT
);
p_input
=
vlc_object_find
(
p_access
,
VLC_OBJECT_INPUT
,
FIND_PARENT
);
if
(
p_input
)
if
(
p_input
)
...
...
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