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
5322a29b
Commit
5322a29b
authored
Mar 26, 2002
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* various little portability fixes
parent
2867bb65
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
45 additions
and
27 deletions
+45
-27
include/audio_output.h
include/audio_output.h
+2
-2
plugins/dummy/vout_dummy.c
plugins/dummy/vout_dummy.c
+4
-1
plugins/gtk/gtk_menu.h
plugins/gtk/gtk_menu.h
+3
-3
plugins/spudec/spu_decoder.c
plugins/spudec/spu_decoder.c
+2
-2
plugins/text/rc.c
plugins/text/rc.c
+11
-5
src/audio_output/aout_ext-dec.c
src/audio_output/aout_ext-dec.c
+2
-2
src/input/input_ext-plugins.c
src/input/input_ext-plugins.c
+6
-2
src/interface/intf_eject.c
src/interface/intf_eject.c
+8
-4
src/interface/main.c
src/interface/main.c
+1
-3
src/misc/configuration.c
src/misc/configuration.c
+6
-3
No files found.
include/audio_output.h
View file @
5322a29b
...
...
@@ -2,7 +2,7 @@
* audio_output.h : audio output thread interface
*****************************************************************************
* Copyright (C) 1999, 2000 VideoLAN
* $Id: audio_output.h,v 1.4
4 2002/03/04 22:18:25
gbazin Exp $
* $Id: audio_output.h,v 1.4
5 2002/03/26 23:08:40
gbazin Exp $
*
* Authors: Michel Kaempf <maxx@via.ecp.fr>
* Cyril Deguet <asmax@via.ecp.fr>
...
...
@@ -86,7 +86,7 @@ typedef struct aout_fifo_s
vlc_mutex_t
data_lock
;
vlc_cond_t
data_wait
;
void
*
buffer
;
u8
*
buffer
;
mtime_t
*
date
;
/* The start frame is the first frame in the buffer that contains decoded
...
...
plugins/dummy/vout_dummy.c
View file @
5322a29b
...
...
@@ -2,7 +2,7 @@
* vout_dummy.c: Dummy video output display method for testing purposes
*****************************************************************************
* Copyright (C) 2000, 2001 VideoLAN
* $Id: vout_dummy.c,v 1.
19 2002/03/16 23:03:19 sam
Exp $
* $Id: vout_dummy.c,v 1.
20 2002/03/26 23:08:40 gbazin
Exp $
*
* Authors: Samuel Hocevar <sam@zoy.org>
*
...
...
@@ -47,6 +47,9 @@ typedef struct vout_sys_s
{
/* Nothing needed here. Maybe stats ? */
/* Prevent malloc(0) */
int
i_dummy
;
}
vout_sys_t
;
/*****************************************************************************
...
...
plugins/gtk/gtk_menu.h
View file @
5322a29b
...
...
@@ -2,7 +2,7 @@
* gtk_menu.h: prototypes for menu functions
*****************************************************************************
* Copyright (C) 1999, 2000 VideoLAN
* $Id: gtk_menu.h,v 1.
5 2001/11/11 18:15:42 sam
Exp $
* $Id: gtk_menu.h,v 1.
6 2002/03/26 23:08:40 gbazin
Exp $
*
* Authors: Samuel Hocevar <sam@zoy.org>
* Stéphane Borel <stef@via.ecp.fr>
...
...
@@ -36,6 +36,6 @@ gint GtkSetupMenus( struct intf_thread_s * );
*****************************************************************************/
#define DATA2TITLE( user_data ) ( (gint)((long)(user_data)) >> 16 )
#define DATA2CHAPTER( user_data ) ( (gint)((long)(user_data)) & 0xffff )
#define POS2DATA( title, chapter ) (
NULL
+ ( ((title) << 16) \
| ((chapter) & 0xffff)) )
#define POS2DATA( title, chapter ) (
0
+ ( ((title) << 16) \
| ((chapter) & 0xffff)) )
plugins/spudec/spu_decoder.c
View file @
5322a29b
...
...
@@ -2,7 +2,7 @@
* spu_decoder.c : spu decoder thread
*****************************************************************************
* Copyright (C) 2000-2001 VideoLAN
* $Id: spu_decoder.c,v 1.1
3 2002/03/15 18:20:27 sam
Exp $
* $Id: spu_decoder.c,v 1.1
4 2002/03/26 23:08:40 gbazin
Exp $
*
* Authors: Samuel Hocevar <sam@zoy.org>
*
...
...
@@ -277,7 +277,7 @@ static void ParsePacket( spudec_thread_t *p_spudec )
/* Fill the p_spu structure */
p_spu
->
pf_render
=
RenderSPU
;
p_spu
->
p_sys
->
p_data
=
(
void
*
)
p_spu
->
p_sys
p_spu
->
p_sys
->
p_data
=
(
u8
*
)
p_spu
->
p_sys
+
sizeof
(
struct
subpicture_sys_s
);
p_spu
->
p_sys
->
b_palette
=
0
;
...
...
plugins/text/rc.c
View file @
5322a29b
...
...
@@ -2,7 +2,7 @@
* rc.c : remote control stdin/stdout plugin for vlc
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: rc.c,v 1.1
0 2002/02/15 13:32:53 sam
Exp $
* $Id: rc.c,v 1.1
1 2002/03/26 23:08:40 gbazin
Exp $
*
* Authors: Peter Surda <shurdeek@panorama.sth.ac.at>
*
...
...
@@ -24,17 +24,23 @@
/*****************************************************************************
* Preamble
*****************************************************************************/
#include <videolan/vlc.h>
#include <stdlib.h>
/* malloc(), free() */
#include <string.h>
#include <errno.h>
/* ENOMEM */
#include <stdio.h>
#include <ctype.h>
#include <unistd.h>
#include <sys/time.h>
#include <sys/types.h>
#include <videolan/vlc.h>
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
#ifdef HAVE_SYS_TIME_H
# include <sys/time.h>
#endif
#include <sys/types.h>
#if defined( WIN32 )
#include <winsock2.h>
/* select() */
...
...
src/audio_output/aout_ext-dec.c
View file @
5322a29b
...
...
@@ -2,7 +2,7 @@
* aout_ext-dec.c : exported fifo management functions
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
* $Id: aout_ext-dec.c,v 1.1
3 2002/02/24 22:06:50 sam
Exp $
* $Id: aout_ext-dec.c,v 1.1
4 2002/03/26 23:08:40 gbazin
Exp $
*
* Authors: Michel Kaempf <maxx@via.ecp.fr>
* Cyril Deguet <asmax@via.ecp.fr>
...
...
@@ -139,7 +139,7 @@ aout_fifo_t * aout_CreateFifo( int i_format, int i_channels, int i_rate,
return
(
NULL
);
}
p_fifo
->
buffer
=
(
void
*
)
p_fifo
->
date
+
sizeof
(
mtime_t
)
p_fifo
->
buffer
=
(
u8
*
)
p_fifo
->
date
+
sizeof
(
mtime_t
)
*
(
AOUT_FIFO_SIZE
+
1
);
/* Set the fifo's buffer as empty (the first frame that is to be
...
...
src/input/input_ext-plugins.c
View file @
5322a29b
...
...
@@ -2,7 +2,7 @@
* input_ext-plugins.c: useful functions for access and demux plug-ins
*****************************************************************************
* Copyright (C) 2001, 2002 VideoLAN
* $Id: input_ext-plugins.c,v 1.
2 2002/03/02 03:53:55 xav
Exp $
* $Id: input_ext-plugins.c,v 1.
3 2002/03/26 23:08:40 gbazin
Exp $
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
*
...
...
@@ -25,7 +25,11 @@
* Preamble
*****************************************************************************/
#include <stdlib.h>
#include <sys/time.h>
#ifdef HAVE_SYS_TIME_H
# include <sys/time.h>
#endif
#include <sys/types.h>
#include <sys/stat.h>
#include <string.h>
...
...
src/interface/intf_eject.c
View file @
5322a29b
...
...
@@ -2,7 +2,7 @@
* intf_eject.c: CD/DVD-ROM ejection handling functions
*****************************************************************************
* Copyright (C) 2001, 2002 VideoLAN
* $Id: intf_eject.c,v 1.
4 2002/01/12 02:02:44 jlj
Exp $
* $Id: intf_eject.c,v 1.
5 2002/03/26 23:08:40 gbazin
Exp $
*
* Author: Julien Blache <jb@technologeek.org> for the Linux part
* with code taken from the Linux "eject" command
...
...
@@ -22,12 +22,16 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
*****************************************************************************/
#include <videolan/vlc.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <videolan/vlc.h>
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
#include <string.h>
#ifdef HAVE_FCNTL_H
# include <fcntl.h>
...
...
src/interface/main.c
View file @
5322a29b
...
...
@@ -4,7 +4,7 @@
* and spawn threads.
*****************************************************************************
* Copyright (C) 1998-2001 VideoLAN
* $Id: main.c,v 1.17
0 2002/03/25 20:37:00 lool
Exp $
* $Id: main.c,v 1.17
1 2002/03/26 23:08:40 gbazin
Exp $
*
* Authors: Vincent Seguin <seguin@via.ecp.fr>
* Samuel Hocevar <sam@zoy.org>
...
...
@@ -66,8 +66,6 @@
#include <errno.h>
/* ENOMEM */
#include <stdlib.h>
/* getenv(), strtol(), */
#include <string.h>
/* strerror() */
#include <fcntl.h>
/* open(), O_WRONLY */
#include <sys/stat.h>
/* S_IREAD */
#include "netutils.h"
/* network_ChannelJoin */
...
...
src/misc/configuration.c
View file @
5322a29b
...
...
@@ -2,7 +2,7 @@
* configuration.c management of the modules configuration
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: configuration.c,v 1.1
0 2002/03/26 22:30:09
gbazin Exp $
* $Id: configuration.c,v 1.1
1 2002/03/26 23:08:40
gbazin Exp $
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
*
...
...
@@ -21,12 +21,15 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
*****************************************************************************/
#include <videolan/vlc.h>
#include <stdio.h>
/* sprintf() */
#include <stdlib.h>
/* free(), strtol() */
#include <string.h>
/* strdup() */
#include <unistd.h>
/* getuid() */
#include <videolan/vlc.h>
#ifdef HAVE_UNISTD_H
# include <unistd.h>
/* getuid() */
#endif
#ifdef HAVE_GETOPT_LONG
# ifdef HAVE_GETOPT_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