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
20823a81
Commit
20823a81
authored
Jul 30, 2001
by
Sam Hocevar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* VC++/Intel compiler fixes by Jon Lech Johansen <jon-vl@nanocrew.net>.
parent
ed87d047
Changes
14
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
121 additions
and
80 deletions
+121
-80
ChangeLog
ChangeLog
+1
-0
configure
configure
+34
-31
configure.in
configure.in
+7
-4
extras/libdvdcss/libdvdcss.c
extras/libdvdcss/libdvdcss.c
+7
-4
include/common.h
include/common.h
+7
-9
plugins/directx/aout_directx.c
plugins/directx/aout_directx.c
+11
-3
plugins/directx/vout_directx.c
plugins/directx/vout_directx.c
+11
-6
plugins/directx/vout_events.c
plugins/directx/vout_events.c
+7
-2
plugins/dvd/dvd_netlist.c
plugins/dvd/dvd_netlist.c
+6
-3
plugins/dvd/input_dvd.c
plugins/dvd/input_dvd.c
+6
-3
plugins/mpeg/input_es.c
plugins/mpeg/input_es.c
+6
-5
plugins/mpeg/input_ts.c
plugins/mpeg/input_ts.c
+5
-2
src/input/input_netlist.c
src/input/input_netlist.c
+8
-5
src/interface/main.c
src/interface/main.c
+5
-3
No files found.
ChangeLog
View file @
20823a81
...
...
@@ -3,6 +3,7 @@
#===================#
HEAD
*
VC
++/
Intel
compiler
fixes
by
Jon
Lech
Johansen
<
jon
-
vl
@
nanocrew
.
net
>.
*
Better
gtk
-
config
detection
.
*
Removed
duplicate
checks
in
configure
.
in
.
*
Fixed
a
typo
in
vlc
.
spec
.
...
...
configure
View file @
20823a81
...
...
@@ -4038,11 +4038,12 @@ else
fi
SDL_HEADER
=
"SDL/SDL.h"
if
test
x
${
SDL_CONFIG
}
=
xno
;
then
if
test
x
${
SDL_CONFIG
}
=
xno
then
# Extract the first word of "sdl11-config", so it can be a program name with args.
set
dummy sdl11-config
;
ac_word
=
$2
echo
$ac_n
"checking for
$ac_word
""...
$ac_c
"
1>&6
echo
"configure:404
6
: checking for
$ac_word
"
>
&5
echo
"configure:404
7
: checking for
$ac_word
"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_path_SDL11_CONFIG
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
...
...
@@ -4078,11 +4079,12 @@ fi
SDL_CONFIG
=
${
SDL11_CONFIG
}
SDL_HEADER
=
"SDL11/SDL.h"
fi
if
test
x
${
SDL_CONFIG
}
=
xno
;
then
if
test
x
${
SDL_CONFIG
}
=
xno
then
# Extract the first word of "sdl12-config", so it can be a program name with args.
set
dummy sdl12-config
;
ac_word
=
$2
echo
$ac_n
"checking for
$ac_word
""...
$ac_c
"
1>&6
echo
"configure:408
6
: checking for
$ac_word
"
>
&5
echo
"configure:408
8
: checking for
$ac_word
"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_path_SDL12_CONFIG
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
...
...
@@ -4118,22 +4120,23 @@ fi
SDL_CONFIG
=
${
SDL12_CONFIG
}
SDL_HEADER
=
"SDL12/SDL.h"
fi
if
test
x
${
SDL_CONFIG
}
!=
xno
;
then
if
test
x
${
SDL_CONFIG
}
!=
xno
then
for
ac_hdr
in
$SDL_HEADER
do
ac_safe
=
`
echo
"
$ac_hdr
"
|
sed
'y%./+-%__p_%'
`
echo
$ac_n
"checking for
$ac_hdr
""...
$ac_c
"
1>&6
echo
"configure:41
27
: checking for
$ac_hdr
"
>
&5
echo
"configure:41
30
: checking for
$ac_hdr
"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_header_
$ac_safe
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 413
2
"configure"
#line 413
5
"configure"
#include "confdefs.h"
#include <
$ac_hdr
>
EOF
ac_try
=
"
$ac_cpp
conftest.
$ac_ext
>/dev/null 2>conftest.out"
{
(
eval echo
configure:41
37
:
\"
$ac_try
\"
)
1>&5
;
(
eval
$ac_try
)
2>&5
;
}
{
(
eval echo
configure:41
40
:
\"
$ac_try
\"
)
1>&5
;
(
eval
$ac_try
)
2>&5
;
}
ac_err
=
`
grep
-v
'^ *+'
conftest.out |
grep
-v
"^conftest.
${
ac_ext
}
\$
"
`
if
test
-z
"
$ac_err
"
;
then
rm
-rf
conftest
*
...
...
@@ -4162,7 +4165,7 @@ echo "The development package for SDL is not installed. Please install it"
fi
done
if
expr
1.1.5
\>
$(
$SDL_CONFIG
--version
)
>
/dev/null
if
expr
1.1.5
\>
`
$SDL_CONFIG
--version
`
>
/dev/null
then
echo
"You need SDL version 1.1.5 or later."
exit
...
...
@@ -4193,17 +4196,17 @@ if test "${with_directx+set}" = set; then
do
ac_safe
=
`
echo
"
$ac_hdr
"
|
sed
'y%./+-%__p_%'
`
echo
$ac_n
"checking for
$ac_hdr
""...
$ac_c
"
1>&6
echo
"configure:4
197
: checking for
$ac_hdr
"
>
&5
echo
"configure:4
200
: checking for
$ac_hdr
"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_header_
$ac_safe
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 420
2
"configure"
#line 420
5
"configure"
#include "confdefs.h"
#include <
$ac_hdr
>
EOF
ac_try
=
"
$ac_cpp
conftest.
$ac_ext
>/dev/null 2>conftest.out"
{
(
eval echo
configure:42
07
:
\"
$ac_try
\"
)
1>&5
;
(
eval
$ac_try
)
2>&5
;
}
{
(
eval echo
configure:42
10
:
\"
$ac_try
\"
)
1>&5
;
(
eval
$ac_try
)
2>&5
;
}
ac_err
=
`
grep
-v
'^ *+'
conftest.out |
grep
-v
"^conftest.
${
ac_ext
}
\$
"
`
if
test
-z
"
$ac_err
"
;
then
rm
-rf
conftest
*
...
...
@@ -4241,17 +4244,17 @@ fi
do
ac_safe
=
`
echo
"
$ac_hdr
"
|
sed
'y%./+-%__p_%'
`
echo
$ac_n
"checking for
$ac_hdr
""...
$ac_c
"
1>&6
echo
"configure:424
5
: checking for
$ac_hdr
"
>
&5
echo
"configure:424
8
: checking for
$ac_hdr
"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_header_
$ac_safe
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 425
0
"configure"
#line 425
3
"configure"
#include "confdefs.h"
#include <
$ac_hdr
>
EOF
ac_try
=
"
$ac_cpp
conftest.
$ac_ext
>/dev/null 2>conftest.out"
{
(
eval echo
configure:425
5
:
\"
$ac_try
\"
)
1>&5
;
(
eval
$ac_try
)
2>&5
;
}
{
(
eval echo
configure:425
8
:
\"
$ac_try
\"
)
1>&5
;
(
eval
$ac_try
)
2>&5
;
}
ac_err
=
`
grep
-v
'^ *+'
conftest.out |
grep
-v
"^conftest.
${
ac_ext
}
\$
"
`
if
test
-z
"
$ac_err
"
;
then
rm
-rf
conftest
*
...
...
@@ -4357,7 +4360,7 @@ then
# Extract the first word of "gtk-config", so it can be a program name with args.
set
dummy gtk-config
;
ac_word
=
$2
echo
$ac_n
"checking for
$ac_word
""...
$ac_c
"
1>&6
echo
"configure:436
1
: checking for
$ac_word
"
>
&5
echo
"configure:436
4
: checking for
$ac_word
"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_path_GTK_CONFIG
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
...
...
@@ -4402,17 +4405,17 @@ fi
do
ac_safe
=
`
echo
"
$ac_hdr
"
|
sed
'y%./+-%__p_%'
`
echo
$ac_n
"checking for
$ac_hdr
""...
$ac_c
"
1>&6
echo
"configure:440
6
: checking for
$ac_hdr
"
>
&5
echo
"configure:440
9
: checking for
$ac_hdr
"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_header_
$ac_safe
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 441
1
"configure"
#line 441
4
"configure"
#include "confdefs.h"
#include <
$ac_hdr
>
EOF
ac_try
=
"
$ac_cpp
conftest.
$ac_ext
>/dev/null 2>conftest.out"
{
(
eval echo
configure:441
6
:
\"
$ac_try
\"
)
1>&5
;
(
eval
$ac_try
)
2>&5
;
}
{
(
eval echo
configure:441
9
:
\"
$ac_try
\"
)
1>&5
;
(
eval
$ac_try
)
2>&5
;
}
ac_err
=
`
grep
-v
'^ *+'
conftest.out |
grep
-v
"^conftest.
${
ac_ext
}
\$
"
`
if
test
-z
"
$ac_err
"
;
then
rm
-rf
conftest
*
...
...
@@ -4463,17 +4466,17 @@ if test x$enable_x11 != xno; then
do
ac_safe
=
`
echo
"
$ac_hdr
"
|
sed
'y%./+-%__p_%'
`
echo
$ac_n
"checking for
$ac_hdr
""...
$ac_c
"
1>&6
echo
"configure:44
67
: checking for
$ac_hdr
"
>
&5
echo
"configure:44
70
: checking for
$ac_hdr
"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_header_
$ac_safe
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 447
2
"configure"
#line 447
5
"configure"
#include "confdefs.h"
#include <
$ac_hdr
>
EOF
ac_try
=
"
$ac_cpp
conftest.
$ac_ext
>/dev/null 2>conftest.out"
{
(
eval echo
configure:44
77
:
\"
$ac_try
\"
)
1>&5
;
(
eval
$ac_try
)
2>&5
;
}
{
(
eval echo
configure:44
80
:
\"
$ac_try
\"
)
1>&5
;
(
eval
$ac_try
)
2>&5
;
}
ac_err
=
`
grep
-v
'^ *+'
conftest.out |
grep
-v
"^conftest.
${
ac_ext
}
\$
"
`
if
test
-z
"
$ac_err
"
;
then
rm
-rf
conftest
*
...
...
@@ -4525,17 +4528,17 @@ if test x$enable_xvideo != xno; then
do
ac_safe
=
`
echo
"
$ac_hdr
"
|
sed
'y%./+-%__p_%'
`
echo
$ac_n
"checking for
$ac_hdr
""...
$ac_c
"
1>&6
echo
"configure:45
29
: checking for
$ac_hdr
"
>
&5
echo
"configure:45
32
: checking for
$ac_hdr
"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_header_
$ac_safe
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 453
4
"configure"
#line 453
7
"configure"
#include "confdefs.h"
#include <
$ac_hdr
>
EOF
ac_try
=
"
$ac_cpp
conftest.
$ac_ext
>/dev/null 2>conftest.out"
{
(
eval echo
configure:45
39
:
\"
$ac_try
\"
)
1>&5
;
(
eval
$ac_try
)
2>&5
;
}
{
(
eval echo
configure:45
42
:
\"
$ac_try
\"
)
1>&5
;
(
eval
$ac_try
)
2>&5
;
}
ac_err
=
`
grep
-v
'^ *+'
conftest.out |
grep
-v
"^conftest.
${
ac_ext
}
\$
"
`
if
test
-z
"
$ac_err
"
;
then
rm
-rf
conftest
*
...
...
@@ -4575,17 +4578,17 @@ if test "${enable_alsa+set}" = set; then
then
ac_safe
=
`
echo
"sys/asoundlib.h"
|
sed
'y%./+-%__p_%'
`
echo
$ac_n
"checking for sys/asoundlib.h""...
$ac_c
"
1>&6
echo
"configure:45
79
: checking for sys/asoundlib.h"
>
&5
echo
"configure:45
82
: checking for sys/asoundlib.h"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_header_
$ac_safe
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 458
4
"configure"
#line 458
7
"configure"
#include "confdefs.h"
#include <sys/asoundlib.h>
EOF
ac_try
=
"
$ac_cpp
conftest.
$ac_ext
>/dev/null 2>conftest.out"
{
(
eval echo
configure:45
89
:
\"
$ac_try
\"
)
1>&5
;
(
eval
$ac_try
)
2>&5
;
}
{
(
eval echo
configure:45
92
:
\"
$ac_try
\"
)
1>&5
;
(
eval
$ac_try
)
2>&5
;
}
ac_err
=
`
grep
-v
'^ *+'
conftest.out |
grep
-v
"^conftest.
${
ac_ext
}
\$
"
`
if
test
-z
"
$ac_err
"
;
then
rm
-rf
conftest
*
...
...
@@ -4602,7 +4605,7 @@ fi
if
eval
"test
\"
`
echo
'$ac_cv_header_'
$ac_safe
`
\"
= yes"
;
then
echo
"
$ac_t
""yes"
1>&6
echo
$ac_n
"checking for main in -lasound""...
$ac_c
"
1>&6
echo
"configure:460
6
: checking for main in -lasound"
>
&5
echo
"configure:460
9
: checking for main in -lasound"
>
&5
ac_lib_var
=
`
echo
asound
'_'
main |
sed
'y%./+-%__p_%'
`
if
eval
"test
\"
`
echo
'$''{'
ac_cv_lib_
$ac_lib_var
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
...
...
@@ -4610,14 +4613,14 @@ else
ac_save_LIBS
=
"
$LIBS
"
LIBS
=
"-lasound
$LIBS
"
cat
>
conftest.
$ac_ext
<<
EOF
#line 461
4
"configure"
#line 461
7
"configure"
#include "confdefs.h"
int main() {
main()
; return 0; }
EOF
if
{
(
eval echo
configure:462
1
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:462
4
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
rm
-rf
conftest
*
eval
"ac_cv_lib_
$ac_lib_var
=yes"
else
...
...
configure.in
View file @
20823a81
...
...
@@ -529,22 +529,25 @@ if test "x$withval" != "xno"
then
AC_PATH_PROG(SDL_CONFIG, sdl-config, no)
SDL_HEADER="SDL/SDL.h"
if test x${SDL_CONFIG} = xno; then
if test x${SDL_CONFIG} = xno
then
AC_PATH_PROG(SDL11_CONFIG, sdl11-config, no)
SDL_CONFIG=${SDL11_CONFIG}
SDL_HEADER="SDL11/SDL.h"
fi
if test x${SDL_CONFIG} = xno; then
if test x${SDL_CONFIG} = xno
then
AC_PATH_PROG(SDL12_CONFIG, sdl12-config, no)
SDL_CONFIG=${SDL12_CONFIG}
SDL_HEADER="SDL12/SDL.h"
fi
if test x${SDL_CONFIG} != xno; then
if test x${SDL_CONFIG} != xno
then
AC_CHECK_HEADERS($SDL_HEADER, [],
[ echo "The development package for SDL is not installed. Please install it"
echo "and try again."
exit ])
if expr 1.1.5 \>
$($SDL_CONFIG --version)
>/dev/null
if expr 1.1.5 \>
`$SDL_CONFIG --version`
>/dev/null
then
echo "You need SDL version 1.1.5 or later."
exit
...
...
extras/libdvdcss/libdvdcss.c
View file @
20823a81
...
...
@@ -2,7 +2,7 @@
* libdvdcss.c: DVD reading library.
*****************************************************************************
* Copyright (C) 1998-2001 VideoLAN
* $Id: libdvdcss.c,v 1.1
1 2001/07/28 02:17:37
sam Exp $
* $Id: libdvdcss.c,v 1.1
2 2001/07/30 00:53:04
sam Exp $
*
* Authors: Stphane Borel <stef@via.ecp.fr>
* Samuel Hocevar <sam@zoy.org>
...
...
@@ -38,8 +38,7 @@
#endif
#if defined( WIN32 )
# include <io.h>
# include "input_iovec.h"
# include <io.h>
/* read() */
#else
# include <sys/uio.h>
/* struct iovec */
#endif
...
...
@@ -47,6 +46,10 @@
#include "config.h"
#include "common.h"
#if defined( WIN32 )
# include "input_iovec.h"
#endif
#include "videolan/dvdcss.h"
#include "libdvdcss.h"
#include "ioctl.h"
...
...
@@ -807,7 +810,7 @@ static int _win32_dvdcss_aread( int i_fd, void *p_data, int i_blocks )
/* transfer the next 64kb (_win32_dvdcss_aread is called recursively)
* We need to check the status of the read on return */
if
(
_win32_dvdcss_aread
(
i_fd
,
p_data
+
32
*
DVDCSS_BLOCK_SIZE
,
if
(
_win32_dvdcss_aread
(
i_fd
,
(
u8
*
)
p_data
+
32
*
DVDCSS_BLOCK_SIZE
,
i_blocks
-
32
)
<
0
)
{
return
-
1
;
...
...
include/common.h
View file @
20823a81
...
...
@@ -3,7 +3,7 @@
* Collection of useful common types and macros definitions
*****************************************************************************
* Copyright (C) 1998, 1999, 2000 VideoLAN
* $Id: common.h,v 1.3
6 2001/07/08 17:45:51 gbazin
Exp $
* $Id: common.h,v 1.3
7 2001/07/30 00:53:04 sam
Exp $
*
* Authors: Samuel Hocevar <sam@via.ecp.fr>
* Vincent Seguin <seguin@via.ecp.fr>
...
...
@@ -207,13 +207,11 @@ struct pgrm_descriptor_s;
#endif
#if defined( WIN32 )
# ifndef _OFF_T_DEFINED
typedef
__int64
off_t
;
#ifndef snprintf
#define snprintf _snprintf
/* snprintf not defined in mingw32 (bug?) */
#endif
# define _OFF_T_DEFINED
# endif
# ifndef snprintf
# define snprintf _snprintf
/* snprintf not defined in mingw32 (bug?) */
# endif
#endif
plugins/directx/aout_directx.c
View file @
20823a81
...
...
@@ -2,7 +2,7 @@
* aout_directx.c: Windows DirectX audio output method
*****************************************************************************
* Copyright (C) 1999, 2000 VideoLAN
* $Id: aout_directx.c,v 1.
6 2001/07/25 08:41:21 gbazin
Exp $
* $Id: aout_directx.c,v 1.
7 2001/07/30 00:53:04 sam
Exp $
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
*
...
...
@@ -39,7 +39,11 @@
#include <errno.h>
/* ENOMEM */
#include <fcntl.h>
/* open(), O_WRONLY */
#include <string.h>
/* strerror() */
#include <unistd.h>
/* write(), close() */
#ifdef HAVE_UNISTD_H
# include <unistd.h>
/* write(), close() */
#endif
#include <stdio.h>
/* "intf_msg.h" */
#include <stdlib.h>
/* calloc(), malloc(), free() */
...
...
@@ -49,7 +53,11 @@
#include "mtime.h"
#include "tests.h"
#include "directx.h"
#if defined( _MSC_VER )
# include <dsound.h>
#else
# include "directx.h"
#endif
#include "audio_output.h"
/* aout_thread_t */
...
...
plugins/directx/vout_directx.c
View file @
20823a81
...
...
@@ -2,7 +2,7 @@
* vout_directx.c: Windows DirectX video output display method
*****************************************************************************
* Copyright (C) 1998, 1999, 2000 VideoLAN
* $Id: vout_directx.c,v 1.
8 2001/07/12 23:06:54 gbazin
Exp $
* $Id: vout_directx.c,v 1.
9 2001/07/30 00:53:04 sam
Exp $
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
*
...
...
@@ -56,7 +56,12 @@
#include <windows.h>
#include <windowsx.h>
#include <directx.h>
#if defined( _MSC_VER )
# include <ddraw.h>
#else
# include <directx.h>
#endif
#include "config.h"
#include "common.h"
...
...
@@ -616,19 +621,19 @@ static void vout_Display( vout_thread_t *p_vout )
i_image_width
/
2
);
#else
/* copy Y, we copy two lines at once */
memcpy
(
ddsd
.
lpSurface
+
i
*
2
*
ddsd
.
lPitch
,
memcpy
(
(
u8
*
)
ddsd
.
lpSurface
+
i
*
2
*
ddsd
.
lPitch
,
p_vout
->
p_rendered_pic
->
p_y
+
i
*
2
*
i_image_width
,
i_image_width
);
memcpy
(
ddsd
.
lpSurface
+
(
i
*
2
+
1
)
*
ddsd
.
lPitch
,
memcpy
(
(
u8
*
)
ddsd
.
lpSurface
+
(
i
*
2
+
1
)
*
ddsd
.
lPitch
,
p_vout
->
p_rendered_pic
->
p_y
+
(
i
*
2
+
1
)
*
i_image_width
,
i_image_width
);
/* then V */
memcpy
((
ddsd
.
lpSurface
+
ddsd
.
dwHeight
*
ddsd
.
lPitch
)
memcpy
((
(
u8
*
)
ddsd
.
lpSurface
+
ddsd
.
dwHeight
*
ddsd
.
lPitch
)
+
i
*
ddsd
.
lPitch
/
2
,
p_vout
->
p_rendered_pic
->
p_v
+
i
*
i_image_width
/
2
,
i_image_width
/
2
);
/* and U */
memcpy
((
ddsd
.
lpSurface
+
ddsd
.
dwHeight
*
ddsd
.
lPitch
)
memcpy
((
(
u8
*
)
ddsd
.
lpSurface
+
ddsd
.
dwHeight
*
ddsd
.
lPitch
)
+
(
ddsd
.
dwHeight
*
ddsd
.
lPitch
/
4
)
+
i
*
ddsd
.
lPitch
/
2
,
p_vout
->
p_rendered_pic
->
p_u
+
i
*
i_image_width
/
2
,
...
...
plugins/directx/vout_events.c
View file @
20823a81
...
...
@@ -2,7 +2,7 @@
* vout_events.c: Windows DirectX video output events handler
*****************************************************************************
* Copyright (C) 1998, 1999, 2000 VideoLAN
* $Id: vout_events.c,v 1.
3 2001/07/25 08:41:21 gbazin
Exp $
* $Id: vout_events.c,v 1.
4 2001/07/30 00:53:04 sam
Exp $
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
*
...
...
@@ -44,7 +44,12 @@
#include <windows.h>
#include <windowsx.h>
#include <directx.h>
#if defined( _MSC_VER )
# include <ddraw.h>
#else
# include <directx.h>
#endif
#include "intf_msg.h"
#include "interface.h"
...
...
plugins/dvd/dvd_netlist.c
View file @
20823a81
...
...
@@ -7,7 +7,7 @@
* will only be given back to netlist when refcount is zero.
*****************************************************************************
* Copyright (C) 1998, 1999, 2000, 2001 VideoLAN
* $Id: dvd_netlist.c,v 1.1
2 2001/07/17 09:48:07 massiot
Exp $
* $Id: dvd_netlist.c,v 1.1
3 2001/07/30 00:53:05 sam
Exp $
*
* Authors: Henri Fallon <henri@videolan.org>
* Stphane Borel <stef@videolan.org>
...
...
@@ -41,8 +41,7 @@
#endif
#if defined( WIN32 )
# include <io.h>
# include "input_iovec.h"
# include <io.h>
/* read() */
#else
# include <sys/uio.h>
/* struct iovec */
#endif
...
...
@@ -53,6 +52,10 @@
#include "mtime.h"
#include "intf_msg.h"
/* intf_*Msg */
#if defined( WIN32 )
# include "input_iovec.h"
#endif
#include "stream_control.h"
#include "input_ext-intf.h"
#include "input_ext-dec.h"
...
...
plugins/dvd/input_dvd.c
View file @
20823a81
...
...
@@ -10,7 +10,7 @@
* -dvd_udf to find files
*****************************************************************************
* Copyright (C) 1998-2001 VideoLAN
* $Id: input_dvd.c,v 1.8
1 2001/07/27 01:05:17
sam Exp $
* $Id: input_dvd.c,v 1.8
2 2001/07/30 00:53:05
sam Exp $
*
* Author: Stphane Borel <stef@via.ecp.fr>
*
...
...
@@ -54,8 +54,7 @@
#endif
#if defined( WIN32 )
# include <io.h>
# include "input_iovec.h"
# include <io.h>
/* read() */
#else
# include <sys/uio.h>
/* struct iovec */
#endif
...
...
@@ -68,6 +67,10 @@
#include "mtime.h"
#include "tests.h"
#if defined( WIN32 )
# include "input_iovec.h"
#endif
#include "intf_msg.h"
#include "main.h"
...
...
plugins/mpeg/input_es.c
View file @
20823a81
...
...
@@ -2,7 +2,7 @@
* input_es.c: Elementary Stream demux and packet management
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: input_es.c,v 1.
8 2001/07/17 09:48:07 massiot
Exp $
* $Id: input_es.c,v 1.
9 2001/07/30 00:53:05 sam
Exp $
*
* Author: Christophe Massiot <massiot@via.ecp.fr>
*
...
...
@@ -38,15 +38,12 @@
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#elif defined( _MSC_VER ) && defined( _WIN32 )
# include <io.h>
#endif
#include <fcntl.h>
#if defined( WIN32 )
# include <io.h>
# include "input_iovec.h"
# include <io.h>
/* read() */
#else
# include <sys/uio.h>
/* struct iovec */
#endif
...
...
@@ -57,6 +54,10 @@
#include "mtime.h"
#include "tests.h"
#if defined( WIN32 )
# include "input_iovec.h"
#endif
#include "intf_msg.h"
#include "main.h"
...
...
plugins/mpeg/input_ts.c
View file @
20823a81
...
...
@@ -2,7 +2,7 @@
* input_ts.c: TS demux and netlist management
*****************************************************************************
* Copyright (C) 1998, 1999, 2000 VideoLAN
* $Id: input_ts.c,v 1.3
0 2001/07/17 09:48:08 massiot
Exp $
* $Id: input_ts.c,v 1.3
1 2001/07/30 00:53:05 sam
Exp $
*
* Authors: Henri Fallon <henri@videolan.org>
*
...
...
@@ -58,7 +58,6 @@
#if defined( WIN32 )
# include <io.h>
# include <winsock2.h>
# include "input_iovec.h"
#else
# include <sys/uio.h>
/* struct iovec */
#endif
...
...
@@ -69,6 +68,10 @@
#include "mtime.h"
#include "tests.h"
#if defined( WIN32 )
# include "input_iovec.h"
#endif
#include "intf_msg.h"
#include "stream_control.h"
...
...
src/input/input_netlist.c
View file @
20823a81
...
...
@@ -2,7 +2,7 @@
* input_netlist.c: netlist management
*****************************************************************************
* Copyright (C) 1998, 1999, 2000 VideoLAN
* $Id: input_netlist.c,v 1.4
0 2001/07/17 09:48:08 massiot
Exp $
* $Id: input_netlist.c,v 1.4
1 2001/07/30 00:53:05 sam
Exp $
*
* Authors: Henri Fallon <henri@videolan.org>
*
...
...
@@ -34,11 +34,10 @@
# include <unistd.h>
#endif
#if
!
defined( WIN32 )
# include <
sys/uio.h>
/* struct iovec
*/
#if defined( WIN32 )
# include <
io.h>
/* read()
*/
#else
# include <io.h>
# include "input_iovec.h"
# include <sys/uio.h>
/* struct iovec */
#endif
#include "config.h"
...
...
@@ -47,6 +46,10 @@
#include "mtime.h"
#include "intf_msg.h"
/* intf_*Msg */
#if defined( WIN32 )
# include "input_iovec.h"
#endif
#include "stream_control.h"
#include "input_ext-intf.h"
#include "input_ext-dec.h"
...
...
src/interface/main.c
View file @
20823a81
...
...
@@ -4,7 +4,7 @@
* and spawn threads.
*****************************************************************************
* Copyright (C) 1998, 1999, 2000 VideoLAN
* $Id: main.c,v 1.10
8 2001/07/18 14:21:00 massiot
Exp $
* $Id: main.c,v 1.10
9 2001/07/30 00:53:05 sam
Exp $
*
* Authors: Vincent Seguin <seguin@via.ecp.fr>
* Samuel Hocevar <sam@zoy.org>
...
...
@@ -49,11 +49,13 @@
#endif
#ifndef WIN32
#
include <netinet/in.h>
/* BSD: struct in_addr */
#
include <netinet/in.h>
/* BSD: struct in_addr */
#endif
#ifdef HAVE_UNISTD_H
#include <unistd.h>
# include <unistd.h>
#elif defined( _MSC_VER ) && defined( _WIN32 )
# include <io.h>
#endif
#include <errno.h>
/* ENOMEM */
...
...
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