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
26bc1985
Commit
26bc1985
authored
Apr 10, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove useless check for time.h
parent
dd029e35
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
7 additions
and
23 deletions
+7
-23
configure.ac
configure.ac
+1
-1
modules/demux/ts.c
modules/demux/ts.c
+1
-5
modules/mux/mp4.c
modules/mux/mp4.c
+1
-6
modules/mux/ogg.c
modules/mux/ogg.c
+0
-4
src/input/vlm.c
src/input/vlm.c
+3
-3
src/input/vlmshell.c
src/input/vlmshell.c
+1
-4
No files found.
configure.ac
View file @
26bc1985
...
...
@@ -829,7 +829,7 @@ AC_EGREP_HEADER(strncasecmp,strings.h,[
AC_MSG_RESULT(no)])
dnl Check for headers
AC_CHECK_HEADERS(
time.h
getopt.h strings.h locale.h)
AC_CHECK_HEADERS(getopt.h strings.h locale.h)
AC_CHECK_HEADERS(fcntl.h sys/types.h sys/time.h sys/times.h sys/ioctl.h sys/stat.h xlocale.h)
AC_CHECK_HEADERS([arpa/inet.h netinet/in.h netinet/udplite.h sys/eventfd.h])
AC_CHECK_HEADERS([net/if.h], [], [],
...
...
modules/demux/ts.c
View file @
26bc1985
...
...
@@ -77,9 +77,7 @@
# include "tables/eit.h"
# endif
#endif
#ifdef HAVE_TIME_H
# include <time.h>
#endif
#include <time.h>
#undef TS_DEBUG
/*****************************************************************************
...
...
@@ -1142,7 +1140,6 @@ static int DVBEventInformation( demux_t *p_demux, int64_t *pi_time, int64_t *pi_
if
(
pi_time
)
*
pi_time
=
0
;
#ifdef HAVE_TIME_H
if
(
p_sys
->
b_access_control
&&
p_sys
->
i_dvb_length
>
0
)
{
/* FIXME we should not use time() but read the date from the tdt */
...
...
@@ -1156,7 +1153,6 @@ static int DVBEventInformation( demux_t *p_demux, int64_t *pi_time, int64_t *pi_
return
VLC_SUCCESS
;
}
}
#endif
return
VLC_EGENERIC
;
}
...
...
modules/mux/mp4.c
View file @
26bc1985
...
...
@@ -35,9 +35,7 @@
#include <vlc_sout.h>
#include <vlc_block.h>
#ifdef HAVE_TIME_H
#include <time.h>
#endif
#include <vlc_iso_lang.h>
#include "vlc_meta.h"
...
...
@@ -2158,13 +2156,10 @@ static void box_send( sout_mux_t *p_mux, bo_t *box )
static
int64_t
get_timestamp
(
void
)
{
int64_t
i_timestamp
=
0
;
int64_t
i_timestamp
=
time
(
NULL
)
;
#ifdef HAVE_TIME_H
i_timestamp
=
time
(
NULL
);
i_timestamp
+=
2082844800
;
// MOV/MP4 start date is 1/1/1904
// 208284480 is (((1970 - 1904) * 365) + 17) * 24 * 60 * 60
#endif
return
i_timestamp
;
}
modules/mux/ogg.c
View file @
26bc1985
...
...
@@ -26,10 +26,6 @@
* Preamble
*****************************************************************************/
#ifdef HAVE_TIME_H
# include <time.h>
#endif
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
...
...
src/input/vlm.c
View file @
26bc1985
...
...
@@ -46,9 +46,9 @@
#include <sys/time.h>
/* gettimeofday() */
#endif
#i
fdef HAVE_TIME_H
#
include <time.h>
/* ctime() */
#
include <sys/timeb.h>
/* ftime() */
#i
nclude <time.h>
/* ctime() */
#
if defined (WIN32) && !defined (UNDER_CE)
#
include <sys/timeb.h>
/* ftime() */
#endif
#include <vlc_input.h>
...
...
src/input/vlmshell.c
View file @
26bc1985
...
...
@@ -44,10 +44,7 @@
# include <sys/time.h>
/* gettimeofday() */
#endif
#ifdef HAVE_TIME_H
# include <time.h>
/* ctime() */
# include <sys/timeb.h>
/* ftime() */
#endif
#include <time.h>
/* ctime() */
#include <vlc_input.h>
#include "input_internal.h"
...
...
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