Commit bc061e84 authored by Sam Hocevar's avatar Sam Hocevar

* ./include/*, ./src/*: separated WIN32 #tests and UNDER_CE #tests, because

    WIN32 isn't always defined under WinCE, but might be. Grmbl.
  * ./include/*: changed a few u* and s* to uint*_t and int*_t.
parent 77c667f4
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* aout_internal.h : internal defines for audio output * aout_internal.h : internal defines for audio output
***************************************************************************** *****************************************************************************
* Copyright (C) 2002 VideoLAN * Copyright (C) 2002 VideoLAN
* $Id: aout_internal.h,v 1.30 2002/11/10 14:31:46 gbazin Exp $ * $Id: aout_internal.h,v 1.31 2002/11/11 14:39:11 sam Exp $
* *
* Authors: Christophe Massiot <massiot@via.ecp.fr> * Authors: Christophe Massiot <massiot@via.ecp.fr>
* *
...@@ -54,7 +54,7 @@ typedef struct aout_alloc_t ...@@ -54,7 +54,7 @@ typedef struct aout_alloc_t
else \ else \
{ \ { \
int i_alloc_size; \ int i_alloc_size; \
i_alloc_size = (u64)(p_alloc)->i_bytes_per_sec \ i_alloc_size = (uint64_t)(p_alloc)->i_bytes_per_sec \
* (i_nb_usec) / 1000000 + 1; \ * (i_nb_usec) / 1000000 + 1; \
ALLOCA_TEST( p_alloc, p_new_buffer ) \ ALLOCA_TEST( p_alloc, p_new_buffer ) \
{ \ { \
...@@ -278,7 +278,7 @@ VLC_EXPORT( int, aout_FormatNbChannels, ( audio_sample_format_t * p_format ) ); ...@@ -278,7 +278,7 @@ VLC_EXPORT( int, aout_FormatNbChannels, ( audio_sample_format_t * p_format ) );
VLC_EXPORT( void, aout_FormatPrepare, ( audio_sample_format_t * p_format ) ); VLC_EXPORT( void, aout_FormatPrepare, ( audio_sample_format_t * p_format ) );
VLC_EXPORT( void, aout_FormatPrint, ( aout_instance_t * p_aout, const char * psz_text, const audio_sample_format_t * p_format ) ); VLC_EXPORT( void, aout_FormatPrint, ( aout_instance_t * p_aout, const char * psz_text, const audio_sample_format_t * p_format ) );
VLC_EXPORT( void, aout_FormatsPrint, ( aout_instance_t * p_aout, const char * psz_text, const audio_sample_format_t * p_format1, const audio_sample_format_t * p_format2 ) ); VLC_EXPORT( void, aout_FormatsPrint, ( aout_instance_t * p_aout, const char * psz_text, const audio_sample_format_t * p_format1, const audio_sample_format_t * p_format2 ) );
void aout_FifoInit( aout_instance_t *, aout_fifo_t *, u32 ); void aout_FifoInit( aout_instance_t *, aout_fifo_t *, uint32_t );
mtime_t aout_FifoNextStart( aout_instance_t *, aout_fifo_t * ); mtime_t aout_FifoNextStart( aout_instance_t *, aout_fifo_t * );
void aout_FifoPush( aout_instance_t *, aout_fifo_t *, aout_buffer_t * ); void aout_FifoPush( aout_instance_t *, aout_fifo_t *, aout_buffer_t * );
void aout_FifoSet( aout_instance_t *, aout_fifo_t *, mtime_t ); void aout_FifoSet( aout_instance_t *, aout_fifo_t *, mtime_t );
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* audio_output.h : audio output interface * audio_output.h : audio output interface
***************************************************************************** *****************************************************************************
* Copyright (C) 2002 VideoLAN * Copyright (C) 2002 VideoLAN
* $Id: audio_output.h,v 1.69 2002/10/20 12:23:47 massiot Exp $ * $Id: audio_output.h,v 1.70 2002/11/11 14:39:11 sam Exp $
* *
* Authors: Christophe Massiot <massiot@via.ecp.fr> * Authors: Christophe Massiot <massiot@via.ecp.fr>
* *
...@@ -85,7 +85,7 @@ struct audio_sample_format_t ...@@ -85,7 +85,7 @@ struct audio_sample_format_t
* integers, but multiplication requires shifting the 64-bit result * integers, but multiplication requires shifting the 64-bit result
* from 56 fractional bits back to 28 (and rounding.) * from 56 fractional bits back to 28 (and rounding.)
*/ */
typedef s32 vlc_fixed_t; typedef int32_t vlc_fixed_t;
#define FIXED32_FRACBITS 28 #define FIXED32_FRACBITS 28
#define FIXED32_MIN ((vlc_fixed_t) -0x80000000L) #define FIXED32_MIN ((vlc_fixed_t) -0x80000000L)
#define FIXED32_MAX ((vlc_fixed_t) +0x7fffffffL) #define FIXED32_MAX ((vlc_fixed_t) +0x7fffffffL)
...@@ -145,9 +145,9 @@ struct aout_buffer_t ...@@ -145,9 +145,9 @@ struct aout_buffer_t
*****************************************************************************/ *****************************************************************************/
struct audio_date_t struct audio_date_t
{ {
mtime_t date; mtime_t date;
u32 i_divider; uint32_t i_divider;
u32 i_remainder; uint32_t i_remainder;
}; };
/***************************************************************************** /*****************************************************************************
...@@ -157,11 +157,11 @@ struct audio_date_t ...@@ -157,11 +157,11 @@ struct audio_date_t
#define aout_New(a) __aout_New(VLC_OBJECT(a)) #define aout_New(a) __aout_New(VLC_OBJECT(a))
VLC_EXPORT( aout_instance_t *, __aout_New, ( vlc_object_t * ) ); VLC_EXPORT( aout_instance_t *, __aout_New, ( vlc_object_t * ) );
VLC_EXPORT( void, aout_Delete, ( aout_instance_t * ) ); VLC_EXPORT( void, aout_Delete, ( aout_instance_t * ) );
VLC_EXPORT( void, aout_DateInit, ( audio_date_t *, u32 ) ); VLC_EXPORT( void, aout_DateInit, ( audio_date_t *, uint32_t ) );
VLC_EXPORT( void, aout_DateSet, ( audio_date_t *, mtime_t ) ); VLC_EXPORT( void, aout_DateSet, ( audio_date_t *, mtime_t ) );
VLC_EXPORT( void, aout_DateMove, ( audio_date_t *, mtime_t ) ); VLC_EXPORT( void, aout_DateMove, ( audio_date_t *, mtime_t ) );
VLC_EXPORT( mtime_t, aout_DateGet, ( const audio_date_t * ) ); VLC_EXPORT( mtime_t, aout_DateGet, ( const audio_date_t * ) );
VLC_EXPORT( mtime_t, aout_DateIncrement, ( audio_date_t *, u32 ) ); VLC_EXPORT( mtime_t, aout_DateIncrement, ( audio_date_t *, uint32_t ) );
/* From dec.c : */ /* From dec.c : */
#define aout_DecNew(a, b, c) __aout_DecNew(VLC_OBJECT(a), b, c) #define aout_DecNew(a, b, c) __aout_DecNew(VLC_OBJECT(a), b, c)
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* input_ext-dec.h: structures exported to the VideoLAN decoders * input_ext-dec.h: structures exported to the VideoLAN decoders
***************************************************************************** *****************************************************************************
* Copyright (C) 1999-2001 VideoLAN * Copyright (C) 1999-2001 VideoLAN
* $Id: input_ext-dec.h,v 1.76 2002/11/09 16:34:52 sam Exp $ * $Id: input_ext-dec.h,v 1.77 2002/11/11 14:39:11 sam Exp $
* *
* Authors: Christophe Massiot <massiot@via.ecp.fr> * Authors: Christophe Massiot <massiot@via.ecp.fr>
* Michel Kaempf <maxx@via.ecp.fr> * Michel Kaempf <maxx@via.ecp.fr>
...@@ -102,7 +102,7 @@ struct decoder_fifo_t ...@@ -102,7 +102,7 @@ struct decoder_fifo_t
input_buffers_t *p_packets_mgt; /* packets management services data */ input_buffers_t *p_packets_mgt; /* packets management services data */
/* Standard pointers given to the decoders as a toolbox. */ /* Standard pointers given to the decoders as a toolbox. */
u16 i_id; uint16_t i_id;
vlc_fourcc_t i_fourcc; vlc_fourcc_t i_fourcc;
es_sys_t * p_demux_data; es_sys_t * p_demux_data;
stream_ctrl_t * p_stream_ctrl; stream_ctrl_t * p_stream_ctrl;
...@@ -119,7 +119,7 @@ struct decoder_fifo_t ...@@ -119,7 +119,7 @@ struct decoder_fifo_t
* This type describes a bit fifo used to store bits while working with the * This type describes a bit fifo used to store bits while working with the
* input stream at the bit level. * input stream at the bit level.
*****************************************************************************/ *****************************************************************************/
typedef u32 WORD_TYPE; typedef uint32_t WORD_TYPE;
typedef struct bit_fifo_t typedef struct bit_fifo_t
{ {
...@@ -196,12 +196,12 @@ struct bit_stream_t ...@@ -196,12 +196,12 @@ struct bit_stream_t
* results will be returned. Use RealignBits() if unsure. * results will be returned. Use RealignBits() if unsure.
*/ */
#if (WORD_TYPE == u32) #if (WORD_TYPE == uint32_t)
# define WORD_AT U32_AT # define WORD_AT U32_AT
# define WORD_SIGNED s32 # define WORD_SIGNED int32_t
#elif (WORD_TYPE == u64) #elif (WORD_TYPE == uint64_t)
# define WORD_AT U64_AT # define WORD_AT U64_AT
# define WORD_SIGNED s64 # define WORD_SIGNED int64_t
#else #else
# error Unsupported WORD_TYPE # error Unsupported WORD_TYPE
#endif #endif
...@@ -212,9 +212,9 @@ struct bit_stream_t ...@@ -212,9 +212,9 @@ struct bit_stream_t
VLC_EXPORT( int, InitBitstream, ( bit_stream_t *, decoder_fifo_t *, void ( * )( bit_stream_t *, vlc_bool_t ), void * p_callback_arg ) ); VLC_EXPORT( int, InitBitstream, ( bit_stream_t *, decoder_fifo_t *, void ( * )( bit_stream_t *, vlc_bool_t ), void * p_callback_arg ) );
VLC_EXPORT( vlc_bool_t, NextDataPacket, ( decoder_fifo_t *, bit_stream_t * ) ); VLC_EXPORT( vlc_bool_t, NextDataPacket, ( decoder_fifo_t *, bit_stream_t * ) );
VLC_EXPORT( void, BitstreamNextDataPacket, ( bit_stream_t * ) ); VLC_EXPORT( void, BitstreamNextDataPacket, ( bit_stream_t * ) );
VLC_EXPORT( u32, UnalignedShowBits, ( bit_stream_t *, unsigned int ) ); VLC_EXPORT( uint32_t, UnalignedShowBits, ( bit_stream_t *, unsigned int ) );
VLC_EXPORT( void, UnalignedRemoveBits, ( bit_stream_t * ) ); VLC_EXPORT( void, UnalignedRemoveBits, ( bit_stream_t * ) );
VLC_EXPORT( u32, UnalignedGetBits, ( bit_stream_t *, unsigned int ) ); VLC_EXPORT( uint32_t, UnalignedGetBits, ( bit_stream_t *, unsigned int ) );
VLC_EXPORT( void, CloseBitstream, ( bit_stream_t * ) ); VLC_EXPORT( void, CloseBitstream, ( bit_stream_t * ) );
VLC_EXPORT( void, CurrentPTS, ( bit_stream_t *, mtime_t *, mtime_t * ) ); VLC_EXPORT( void, CurrentPTS, ( bit_stream_t *, mtime_t *, mtime_t * ) );
VLC_EXPORT( void, NextPTS, ( bit_stream_t *, mtime_t *, mtime_t * ) ); VLC_EXPORT( void, NextPTS, ( bit_stream_t *, mtime_t *, mtime_t * ) );
...@@ -250,7 +250,8 @@ static inline void AlignWord( bit_stream_t * p_bit_stream ) ...@@ -250,7 +250,8 @@ static inline void AlignWord( bit_stream_t * p_bit_stream )
/***************************************************************************** /*****************************************************************************
* ShowBits : return i_bits bits from the bit stream * ShowBits : return i_bits bits from the bit stream
*****************************************************************************/ *****************************************************************************/
static inline u32 ShowBits( bit_stream_t * p_bit_stream, unsigned int i_bits ) static inline uint32_t ShowBits( bit_stream_t * p_bit_stream,
unsigned int i_bits )
{ {
if( (unsigned int)p_bit_stream->fifo.i_available >= i_bits ) if( (unsigned int)p_bit_stream->fifo.i_available >= i_bits )
{ {
...@@ -272,8 +273,8 @@ static inline u32 ShowBits( bit_stream_t * p_bit_stream, unsigned int i_bits ) ...@@ -272,8 +273,8 @@ static inline u32 ShowBits( bit_stream_t * p_bit_stream, unsigned int i_bits )
* ShowSignedBits : return i_bits bits from the bit stream, using signed * ShowSignedBits : return i_bits bits from the bit stream, using signed
* arithmetic * arithmetic
*****************************************************************************/ *****************************************************************************/
static inline s32 ShowSignedBits( bit_stream_t * p_bit_stream, static inline int32_t ShowSignedBits( bit_stream_t * p_bit_stream,
unsigned int i_bits ) unsigned int i_bits )
{ {
if( (unsigned int)p_bit_stream->fifo.i_available >= i_bits ) if( (unsigned int)p_bit_stream->fifo.i_available >= i_bits )
{ {
...@@ -318,7 +319,7 @@ static inline void RemoveBits( bit_stream_t * p_bit_stream, ...@@ -318,7 +319,7 @@ static inline void RemoveBits( bit_stream_t * p_bit_stream,
* RemoveBits32 : removes 32 bits from the bit buffer (and as a side effect, * RemoveBits32 : removes 32 bits from the bit buffer (and as a side effect,
* refill it) * refill it)
*****************************************************************************/ *****************************************************************************/
#if (WORD_TYPE == u32) #if (WORD_TYPE == uint32_t)
static inline void RemoveBits32( bit_stream_t * p_bit_stream ) static inline void RemoveBits32( bit_stream_t * p_bit_stream )
{ {
if( p_bit_stream->p_byte <= p_bit_stream->p_end - sizeof(WORD_TYPE) ) if( p_bit_stream->p_byte <= p_bit_stream->p_end - sizeof(WORD_TYPE) )
...@@ -348,9 +349,10 @@ static inline void RemoveBits32( bit_stream_t * p_bit_stream ) ...@@ -348,9 +349,10 @@ static inline void RemoveBits32( bit_stream_t * p_bit_stream )
* GetBits : returns i_bits bits from the bit stream and removes them * GetBits : returns i_bits bits from the bit stream and removes them
* XXX: do not use for 32 bits, see GetBits32 * XXX: do not use for 32 bits, see GetBits32
*****************************************************************************/ *****************************************************************************/
static inline u32 GetBits( bit_stream_t * p_bit_stream, unsigned int i_bits ) static inline uint32_t GetBits( bit_stream_t * p_bit_stream,
unsigned int i_bits )
{ {
u32 i_result; uint32_t i_result;
p_bit_stream->fifo.i_available -= i_bits; p_bit_stream->fifo.i_available -= i_bits;
...@@ -385,12 +387,12 @@ static inline u32 GetBits( bit_stream_t * p_bit_stream, unsigned int i_bits ) ...@@ -385,12 +387,12 @@ static inline u32 GetBits( bit_stream_t * p_bit_stream, unsigned int i_bits )
* using signed arithmetic * using signed arithmetic
* XXX: do not use for 32 bits * XXX: do not use for 32 bits
*****************************************************************************/ *****************************************************************************/
static inline s32 GetSignedBits( bit_stream_t * p_bit_stream, static inline int32_t GetSignedBits( bit_stream_t * p_bit_stream,
unsigned int i_bits ) unsigned int i_bits )
{ {
if( (unsigned int)p_bit_stream->fifo.i_available >= i_bits ) if( (unsigned int)p_bit_stream->fifo.i_available >= i_bits )
{ {
s32 i_result; int32_t i_result;
p_bit_stream->fifo.i_available -= i_bits; p_bit_stream->fifo.i_available -= i_bits;
i_result = (WORD_SIGNED)p_bit_stream->fifo.buffer i_result = (WORD_SIGNED)p_bit_stream->fifo.buffer
...@@ -407,10 +409,10 @@ static inline s32 GetSignedBits( bit_stream_t * p_bit_stream, ...@@ -407,10 +409,10 @@ static inline s32 GetSignedBits( bit_stream_t * p_bit_stream,
/***************************************************************************** /*****************************************************************************
* GetBits32 : returns 32 bits from the bit stream and removes them * GetBits32 : returns 32 bits from the bit stream and removes them
*****************************************************************************/ *****************************************************************************/
#if (WORD_TYPE == u32) #if (WORD_TYPE == uint32_t)
static inline u32 GetBits32( bit_stream_t * p_bit_stream ) static inline uint32_t GetBits32( bit_stream_t * p_bit_stream )
{ {
u32 i_result; uint32_t i_result;
if( p_bit_stream->fifo.i_available == 32 ) if( p_bit_stream->fifo.i_available == 32 )
{ {
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* control the pace of reading. * control the pace of reading.
***************************************************************************** *****************************************************************************
* Copyright (C) 1999, 2000 VideoLAN * Copyright (C) 1999, 2000 VideoLAN
* $Id: input_ext-intf.h,v 1.77 2002/08/18 13:16:51 sigmunau Exp $ * $Id: input_ext-intf.h,v 1.78 2002/11/11 14:39:11 sam Exp $
* *
* Authors: Christophe Massiot <massiot@via.ecp.fr> * Authors: Christophe Massiot <massiot@via.ecp.fr>
* *
...@@ -45,10 +45,10 @@ ...@@ -45,10 +45,10 @@
*****************************************************************************/ *****************************************************************************/
struct es_descriptor_t struct es_descriptor_t
{ {
u16 i_id; /* stream ID for PS, PID for TS */ uint16_t i_id; /* stream ID for PS, PID for TS */
u8 i_stream_id; /* stream ID defined in the PES */ uint8_t i_stream_id; /* stream ID defined in the PES */
vlc_fourcc_t i_fourcc; /* stream type */ vlc_fourcc_t i_fourcc; /* stream type */
u8 i_cat; /* stream category (audio, video, spu) */ uint8_t i_cat; /* stream category (audio, video, spu) */
int i_demux_fd; /* used to store demux device int i_demux_fd; /* used to store demux device
file handle */ file handle */
char psz_desc[20]; /* description of ES: audio language char psz_desc[20]; /* description of ES: audio language
...@@ -93,12 +93,12 @@ struct es_descriptor_t ...@@ -93,12 +93,12 @@ struct es_descriptor_t
struct pgrm_descriptor_t struct pgrm_descriptor_t
{ {
/* Program characteristics */ /* Program characteristics */
u16 i_number; /* program number */ uint16_t i_number; /* program number */
u8 i_version; /* version number */ uint8_t i_version; /* version number */
vlc_bool_t b_is_ok; /* Is the description up to date ? */ vlc_bool_t b_is_ok; /* Is the description up to date ? */
/* Service Descriptor (program name) - DVB extension */ /* Service Descriptor (program name) - DVB extension */
u8 i_srv_type; uint8_t i_srv_type;
char * psz_srv_name; char * psz_srv_name;
/* Synchronization information */ /* Synchronization information */
...@@ -208,7 +208,7 @@ struct input_info_category_t { ...@@ -208,7 +208,7 @@ struct input_info_category_t {
*****************************************************************************/ *****************************************************************************/
struct stream_descriptor_t struct stream_descriptor_t
{ {
u16 i_stream_id; /* stream id */ uint16_t i_stream_id; /* stream id */
vlc_bool_t b_changed; /* if stream has been changed, vlc_bool_t b_changed; /* if stream has been changed,
we have to inform the interface */ we have to inform the interface */
vlc_mutex_t stream_lock; /* to be taken every time you read vlc_mutex_t stream_lock; /* to be taken every time you read
...@@ -228,7 +228,7 @@ struct stream_descriptor_t ...@@ -228,7 +228,7 @@ struct stream_descriptor_t
input_area_t * p_new_area; /* Newly selected area from input_area_t * p_new_area; /* Newly selected area from
* the interface */ * the interface */
u32 i_mux_rate; /* the rate we read the stream (in uint32_t i_mux_rate; /* the rate we read the stream (in
* units of 50 bytes/s) ; 0 if undef */ * units of 50 bytes/s) ; 0 if undef */
/* New status and rate requested by the interface */ /* New status and rate requested by the interface */
...@@ -279,7 +279,7 @@ struct stream_position_t ...@@ -279,7 +279,7 @@ struct stream_position_t
off_t i_tell; /* actual location in the area (in arbitrary units) */ off_t i_tell; /* actual location in the area (in arbitrary units) */
off_t i_size; /* total size of the area (in arbitrary units) */ off_t i_size; /* total size of the area (in arbitrary units) */
u32 i_mux_rate; /* the rate we read the stream (in uint32_t i_mux_rate; /* the rate we read the stream (in
* units of 50 bytes/s) ; 0 if undef */ * units of 50 bytes/s) ; 0 if undef */
}; };
...@@ -386,7 +386,7 @@ VLC_EXPORT( void, input_DumpStream, ( input_thread_t * ) ); ...@@ -386,7 +386,7 @@ VLC_EXPORT( void, input_DumpStream, ( input_thread_t * ) );
VLC_EXPORT( char *, input_OffsetToTime, ( input_thread_t *, char *, off_t ) ); VLC_EXPORT( char *, input_OffsetToTime, ( input_thread_t *, char *, off_t ) );
VLC_EXPORT( int, input_ToggleES, ( input_thread_t *, es_descriptor_t *, vlc_bool_t ) ); VLC_EXPORT( int, input_ToggleES, ( input_thread_t *, es_descriptor_t *, vlc_bool_t ) );
VLC_EXPORT( int, input_ChangeArea, ( input_thread_t *, input_area_t * ) ); VLC_EXPORT( int, input_ChangeArea, ( input_thread_t *, input_area_t * ) );
VLC_EXPORT( int, input_ChangeProgram, ( input_thread_t *, u16 ) ); VLC_EXPORT( int, input_ChangeProgram, ( input_thread_t *, uint16_t ) );
int input_ToggleGrayscale( input_thread_t * ); int input_ToggleGrayscale( input_thread_t * );
int input_ToggleMute ( input_thread_t * ); int input_ToggleMute ( input_thread_t * );
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* but exported to plug-ins * but exported to plug-ins
***************************************************************************** *****************************************************************************
* Copyright (C) 1999-2002 VideoLAN * Copyright (C) 1999-2002 VideoLAN
* $Id: input_ext-plugins.h,v 1.36 2002/10/27 16:58:14 gbazin Exp $ * $Id: input_ext-plugins.h,v 1.37 2002/11/11 14:39:11 sam Exp $
* *
* Authors: Christophe Massiot <massiot@via.ecp.fr> * Authors: Christophe Massiot <massiot@via.ecp.fr>
* *
...@@ -40,14 +40,14 @@ ...@@ -40,14 +40,14 @@
*****************************************************************************/ *****************************************************************************/
VLC_EXPORT( int, input_InitStream,( input_thread_t *, size_t ) ); VLC_EXPORT( int, input_InitStream,( input_thread_t *, size_t ) );
VLC_EXPORT( void, input_EndStream, ( input_thread_t * ) ); VLC_EXPORT( void, input_EndStream, ( input_thread_t * ) );
VLC_EXPORT( pgrm_descriptor_t *, input_FindProgram,( input_thread_t *, u16 ) ); VLC_EXPORT( pgrm_descriptor_t *, input_FindProgram,( input_thread_t *, uint16_t ) );
VLC_EXPORT( pgrm_descriptor_t *, input_AddProgram, ( input_thread_t *, u16, size_t ) ); VLC_EXPORT( pgrm_descriptor_t *, input_AddProgram, ( input_thread_t *, uint16_t, size_t ) );
VLC_EXPORT( void, input_DelProgram,( input_thread_t *, pgrm_descriptor_t * ) ); VLC_EXPORT( void, input_DelProgram,( input_thread_t *, pgrm_descriptor_t * ) );
VLC_EXPORT( int, input_SetProgram,( input_thread_t *, pgrm_descriptor_t * ) ); VLC_EXPORT( int, input_SetProgram,( input_thread_t *, pgrm_descriptor_t * ) );
VLC_EXPORT( input_area_t *, input_AddArea,( input_thread_t * ) ); VLC_EXPORT( input_area_t *, input_AddArea,( input_thread_t * ) );
VLC_EXPORT( void, input_DelArea, ( input_thread_t *, input_area_t * ) ); VLC_EXPORT( void, input_DelArea, ( input_thread_t *, input_area_t * ) );
VLC_EXPORT( es_descriptor_t *, input_FindES,( input_thread_t *, u16 ) ); VLC_EXPORT( es_descriptor_t *, input_FindES,( input_thread_t *, uint16_t ) );
VLC_EXPORT( es_descriptor_t *, input_AddES, ( input_thread_t *, pgrm_descriptor_t *, u16, size_t ) ); VLC_EXPORT( es_descriptor_t *, input_AddES, ( input_thread_t *, pgrm_descriptor_t *, uint16_t, size_t ) );
VLC_EXPORT( void, input_DelES, ( input_thread_t *, es_descriptor_t * ) ); VLC_EXPORT( void, input_DelES, ( input_thread_t *, es_descriptor_t * ) );
VLC_EXPORT( int, input_SelectES, ( input_thread_t *, es_descriptor_t * ) ); VLC_EXPORT( int, input_SelectES, ( input_thread_t *, es_descriptor_t * ) );
VLC_EXPORT( int, input_UnselectES,( input_thread_t *, es_descriptor_t * ) ); VLC_EXPORT( int, input_UnselectES,( input_thread_t *, es_descriptor_t * ) );
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* interface, such as message output. * interface, such as message output.
***************************************************************************** *****************************************************************************
* Copyright (C) 1999, 2000 VideoLAN * Copyright (C) 1999, 2000 VideoLAN
* $Id: interface.h,v 1.36 2002/10/11 22:32:55 sam Exp $ * $Id: interface.h,v 1.37 2002/11/11 14:39:11 sam Exp $
* *
* Authors: Vincent Seguin <seguin@via.ecp.fr> * Authors: Vincent Seguin <seguin@via.ecp.fr>
* *
...@@ -62,7 +62,7 @@ VLC_EXPORT( void, intf_Destroy, ( intf_thread_t * ) ); ...@@ -62,7 +62,7 @@ VLC_EXPORT( void, intf_Destroy, ( intf_thread_t * ) );
/***************************************************************************** /*****************************************************************************
* Macros * Macros
*****************************************************************************/ *****************************************************************************/
#ifdef WIN32 #if defined( WIN32 ) && !defined( UNDER_CE )
# define CONSOLE_INTRO_MSG \ # define CONSOLE_INTRO_MSG \
AllocConsole(); \ AllocConsole(); \
freopen( "CONOUT$", "w", stdout ); \ freopen( "CONOUT$", "w", stdout ); \
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* iso_lang.h: function to decode language code (in dvd or a52 for instance). * iso_lang.h: function to decode language code (in dvd or a52 for instance).
***************************************************************************** *****************************************************************************
* Copyright (C) 1998-2001 VideoLAN * Copyright (C) 1998-2001 VideoLAN
* $Id: iso_lang.h,v 1.7 2002/07/20 18:01:41 sam Exp $ * $Id: iso_lang.h,v 1.8 2002/11/11 14:39:11 sam Exp $
* *
* Author: Stphane Borel <stef@via.ecp.fr> * Author: Stphane Borel <stef@via.ecp.fr>
* Arnaud de Bossoreille de Ribou <bozo@via.ecp.fr> * Arnaud de Bossoreille de Ribou <bozo@via.ecp.fr>
...@@ -34,5 +34,5 @@ struct iso639_lang_t ...@@ -34,5 +34,5 @@ struct iso639_lang_t
VLC_EXPORT( const iso639_lang_t *, GetLang_1, ( const char * ) ); VLC_EXPORT( const iso639_lang_t *, GetLang_1, ( const char * ) );
VLC_EXPORT( const iso639_lang_t *, GetLang_2T, ( const char * ) ); VLC_EXPORT( const iso639_lang_t *, GetLang_2T, ( const char * ) );
VLC_EXPORT( const iso639_lang_t *, GetLang_2B, ( const char * ) ); VLC_EXPORT( const iso639_lang_t *, GetLang_2B, ( const char * ) );
VLC_EXPORT( const char *, DecodeLanguage, ( u16 ) ); VLC_EXPORT( const char *, DecodeLanguage, ( uint16_t ) );
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* Declaration and extern access to global program object. * Declaration and extern access to global program object.
***************************************************************************** *****************************************************************************
* Copyright (C) 1999, 2000, 2001, 2002 VideoLAN * Copyright (C) 1999, 2000, 2001, 2002 VideoLAN
* $Id: main.h,v 1.50 2002/11/10 18:04:22 sam Exp $ * $Id: main.h,v 1.51 2002/11/11 14:39:11 sam Exp $
* *
* Authors: Vincent Seguin <seguin@via.ecp.fr> * Authors: Vincent Seguin <seguin@via.ecp.fr>
* *
...@@ -37,7 +37,7 @@ struct libvlc_t ...@@ -37,7 +37,7 @@ struct libvlc_t
vlc_bool_t b_ready; vlc_bool_t b_ready;
/* CPU extensions */ /* CPU extensions */
u32 i_cpu; uint32_t i_cpu;
/* Generic settings */ /* Generic settings */
int i_verbose; /* info messages */ int i_verbose; /* info messages */
...@@ -83,7 +83,7 @@ struct vlc_t ...@@ -83,7 +83,7 @@ struct vlc_t
/* Fast memcpy plugin used */ /* Fast memcpy plugin used */
module_t * p_memcpy_module; module_t * p_memcpy_module;
#if defined( WIN32 ) #if defined( UNDER_CE )
void* ( __cdecl *pf_memcpy ) ( void *, const void *, size_t ); void* ( __cdecl *pf_memcpy ) ( void *, const void *, size_t );
void* ( __cdecl *pf_memset ) ( void *, int, size_t ); void* ( __cdecl *pf_memset ) ( void *, int, size_t );
#else #else
......
...@@ -26,14 +26,14 @@ ...@@ -26,14 +26,14 @@
*/ */
typedef union { typedef union {
s64 q; /* Quadword (64-bit) value */ int64_t q; /* Quadword (64-bit) value */
u64 uq; /* Unsigned Quadword */ uint64_t uq; /* Unsigned Quadword */
s32 d[2]; /* 2 Doubleword (32-bit) values */ int32_t d[2]; /* 2 Doubleword (32-bit) values */
u32 ud[2]; /* 2 Unsigned Doubleword */ uint32_t ud[2]; /* 2 Unsigned Doubleword */
s16 w[4]; /* 4 Word (16-bit) values */ int16_t w[4]; /* 4 Word (16-bit) values */
u16 uw[4]; /* 4 Unsigned Word */ uint16_t uw[4]; /* 4 Unsigned Word */
s8 b[8]; /* 8 Byte (8-bit) values */ int8_t b[8]; /* 8 Byte (8-bit) values */
u8 ub[8]; /* 8 Unsigned Byte */ uint8_t ub[8]; /* 8 Unsigned Byte */
float s[2]; /* Single-precision (32-bit) value */ float s[2]; /* Single-precision (32-bit) value */
} ATTR_ALIGN(8) mmx_t; /* On an 8-byte (64-bit) boundary */ } ATTR_ALIGN(8) mmx_t; /* On an 8-byte (64-bit) boundary */
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* modules.h : Module management functions. * modules.h : Module management functions.
***************************************************************************** *****************************************************************************
* Copyright (C) 2001 VideoLAN * Copyright (C) 2001 VideoLAN
* $Id: modules.h,v 1.61 2002/08/21 17:31:58 sam Exp $ * $Id: modules.h,v 1.62 2002/11/11 14:39:11 sam Exp $
* *
* Authors: Samuel Hocevar <sam@zoy.org> * Authors: Samuel Hocevar <sam@zoy.org>
* *
...@@ -67,9 +67,9 @@ struct module_t ...@@ -67,9 +67,9 @@ struct module_t
char *pp_shortcuts[ MODULE_SHORTCUT_MAX ]; /* Shortcuts to the module */ char *pp_shortcuts[ MODULE_SHORTCUT_MAX ]; /* Shortcuts to the module */
char *psz_capability; /* Capability */ char *psz_capability; /* Capability */
int i_score; /* Score for each capability */ int i_score; /* Score for each capability */
u32 i_cpu; /* Required CPU capabilities */ uint32_t i_cpu; /* Required CPU capabilities */
vlc_bool_t b_unloadable; /* Can we be dlclosed? */ vlc_bool_t b_unloadable; /* Can we be dlclosed? */
vlc_bool_t b_reentrant; /* Are we reentrant? */ vlc_bool_t b_reentrant; /* Are we reentrant? */
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
* Functions prototyped are implemented in interface/mtime.c. * Functions prototyped are implemented in interface/mtime.c.
***************************************************************************** *****************************************************************************
* Copyright (C) 1996, 1997, 1998, 1999, 2000 VideoLAN * Copyright (C) 1996, 1997, 1998, 1999, 2000 VideoLAN
* $Id: mtime.h,v 1.12 2002/06/01 12:31:57 sam Exp $ * $Id: mtime.h,v 1.13 2002/11/11 14:39:11 sam Exp $
* *
* Authors: Vincent Seguin <seguin@via.ecp.fr> * Authors: Vincent Seguin <seguin@via.ecp.fr>
* *
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
* returning the date of the first image to be displayed. It can be used in * returning the date of the first image to be displayed. It can be used in
* comparaison with other values: all existing dates will be earlier. * comparaison with other values: all existing dates will be earlier.
*****************************************************************************/ *****************************************************************************/
#define LAST_MDATE ((mtime_t)((u64)(-1)/2)) #define LAST_MDATE ((mtime_t)((uint64_t)(-1)/2))
/***************************************************************************** /*****************************************************************************
* MSTRTIME_MAX_SIZE: maximum possible size of mstrtime * MSTRTIME_MAX_SIZE: maximum possible size of mstrtime
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* os_specific.h: OS specific features * os_specific.h: OS specific features
***************************************************************************** *****************************************************************************
* Copyright (C) 2001 VideoLAN * Copyright (C) 2001 VideoLAN
* $Id: os_specific.h,v 1.9 2002/06/02 14:26:15 gbazin Exp $ * $Id: os_specific.h,v 1.10 2002/11/11 14:39:11 sam Exp $
* *
* Authors: Samuel Hocevar <sam@zoy.org> * Authors: Samuel Hocevar <sam@zoy.org>
* Gildas Bazin <gbazin@netcourrier.com> * Gildas Bazin <gbazin@netcourrier.com>
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
# include "beos_specific.h" # include "beos_specific.h"
#elif defined( SYS_DARWIN ) #elif defined( SYS_DARWIN )
# include "darwin_specific.h" # include "darwin_specific.h"
#elif defined( WIN32 ) #elif defined( WIN32 ) || defined( UNDER_CE )
# include "win32_specific.h" # include "win32_specific.h"
#else #else
# undef _NEED_OS_SPECIFIC_H # undef _NEED_OS_SPECIFIC_H
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* variables.h: variables handling * variables.h: variables handling
***************************************************************************** *****************************************************************************
* Copyright (C) 2002 VideoLAN * Copyright (C) 2002 VideoLAN
* $Id: variables.h,v 1.7 2002/10/28 20:57:01 sam Exp $ * $Id: variables.h,v 1.8 2002/11/11 14:39:11 sam Exp $
* *
* Authors: Samuel Hocevar <sam@zoy.org> * Authors: Samuel Hocevar <sam@zoy.org>
* *
...@@ -34,7 +34,7 @@ struct variable_t ...@@ -34,7 +34,7 @@ struct variable_t
/* The variable unique name, (almost) unique hashed value, and type */ /* The variable unique name, (almost) unique hashed value, and type */
char * psz_name; char * psz_name;
u32 i_hash; uint32_t i_hash;
int i_type; int i_type;
/* A pointer to a comparison function, a duplication function, and /* A pointer to a comparison function, a duplication function, and
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* includes all common video types and constants. * includes all common video types and constants.
***************************************************************************** *****************************************************************************
* Copyright (C) 1999, 2000 VideoLAN * Copyright (C) 1999, 2000 VideoLAN
* $Id: video.h,v 1.57 2002/11/06 18:07:57 sam Exp $ * $Id: video.h,v 1.58 2002/11/11 14:39:11 sam Exp $
* *
* Authors: Vincent Seguin <seguin@via.ecp.fr> * Authors: Vincent Seguin <seguin@via.ecp.fr>
* *
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
*****************************************************************************/ *****************************************************************************/
typedef struct plane_t typedef struct plane_t
{ {
u8 *p_pixels; /* Start of the plane's data */ uint8_t *p_pixels; /* Start of the plane's data */
/* Variables used for fast memcpy operations */ /* Variables used for fast memcpy operations */
int i_lines; /* Number of lines */ int i_lines; /* Number of lines */
...@@ -55,7 +55,7 @@ struct picture_t ...@@ -55,7 +55,7 @@ struct picture_t
/* Picture data - data can always be freely modified, but p_data may /* Picture data - data can always be freely modified, but p_data may
* NEVER be modified. A direct buffer can be handled as the plugin * NEVER be modified. A direct buffer can be handled as the plugin
* wishes, it can even swap p_pixels buffers. */ * wishes, it can even swap p_pixels buffers. */
u8 *p_data; uint8_t *p_data;
void *p_data_orig; /* pointer before memalign */ void *p_data_orig; /* pointer before memalign */
plane_t p[ VOUT_MAX_PLANES ]; /* description of the planes */ plane_t p[ VOUT_MAX_PLANES ]; /* description of the planes */
int i_planes; /* number of allocated planes */ int i_planes; /* number of allocated planes */
...@@ -109,14 +109,17 @@ struct picture_heap_t ...@@ -109,14 +109,17 @@ struct picture_heap_t
int i_bmask, i_rbshift, i_lbshift; int i_bmask, i_rbshift, i_lbshift;
/* Stuff used for palettized RGB planes */ /* Stuff used for palettized RGB planes */
void (* pf_setpalette) ( vout_thread_t *, u16 *, u16 *, u16 * ); void (* pf_setpalette) ( vout_thread_t *, uint16_t *, uint16_t *, uint16_t * );
}; };
/* RGB2PIXEL: assemble RGB components to a pixel value, returns a u32 */ /* RGB2PIXEL: assemble RGB components to a pixel value, returns a uint32_t */
#define RGB2PIXEL( p_vout, i_r, i_g, i_b ) \ #define RGB2PIXEL( p_vout, i_r, i_g, i_b ) \
(((((u32)i_r) >> p_vout->output.i_rrshift) << p_vout->output.i_lrshift) | \ (((((uint32_t)i_r) >> p_vout->output.i_rrshift) \
((((u32)i_g) >> p_vout->output.i_rgshift) << p_vout->output.i_lgshift) | \ << p_vout->output.i_lrshift) \
((((u32)i_b) >> p_vout->output.i_rbshift) << p_vout->output.i_lbshift)) | ((((uint32_t)i_g) >> p_vout->output.i_rgshift) \
<< p_vout->output.i_lgshift) \
| ((((uint32_t)i_b) >> p_vout->output.i_rbshift) \
<< p_vout->output.i_lbshift))
/***************************************************************************** /*****************************************************************************
* Flags used to describe the status of a picture * Flags used to describe the status of a picture
...@@ -191,9 +194,9 @@ struct subpicture_t ...@@ -191,9 +194,9 @@ struct subpicture_t
{ {
vout_font_t * p_font; /* font, NULL for default */ vout_font_t * p_font; /* font, NULL for default */
int i_style; /* text style */ int i_style; /* text style */
u32 i_char_color; /* character color */ uint32_t i_char_color; /* character color */
u32 i_border_color; /* border color */ uint32_t i_border_color; /* border color */
u32 i_bg_color; /* background color */ uint32_t i_bg_color; /* background color */
} text; } text;
} type; } type;
#endif #endif
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
* thread, and destroy a previously opened video output thread. * thread, and destroy a previously opened video output thread.
***************************************************************************** *****************************************************************************
* Copyright (C) 1999, 2000 VideoLAN * Copyright (C) 1999, 2000 VideoLAN
* $Id: video_output.h,v 1.85 2002/11/06 18:07:57 sam Exp $ * $Id: video_output.h,v 1.86 2002/11/11 14:39:11 sam Exp $
* *
* Authors: Vincent Seguin <seguin@via.ecp.fr> * Authors: Vincent Seguin <seguin@via.ecp.fr>
* Samuel Hocevar <sam@via.ecp.fr> * Samuel Hocevar <sam@via.ecp.fr>
...@@ -68,7 +68,7 @@ struct vout_thread_t ...@@ -68,7 +68,7 @@ struct vout_thread_t
vout_sys_t * p_sys; /* system output method */ vout_sys_t * p_sys; /* system output method */
/* Current display properties */ /* Current display properties */
u16 i_changes; /* changes made to the thread */ uint16_t i_changes; /* changes made to the thread */
float f_gamma; /* gamma */ float f_gamma; /* gamma */
vlc_bool_t b_grayscale; /* color or grayscale display */ vlc_bool_t b_grayscale; /* color or grayscale display */
vlc_bool_t b_info; /* print additional information */ vlc_bool_t b_info; /* print additional information */
...@@ -142,13 +142,13 @@ struct vout_thread_t ...@@ -142,13 +142,13 @@ struct vout_thread_t
* Prototypes * Prototypes
*****************************************************************************/ *****************************************************************************/
#define vout_CreateThread(a,b,c,d,e) __vout_CreateThread(VLC_OBJECT(a),b,c,d,e) #define vout_CreateThread(a,b,c,d,e) __vout_CreateThread(VLC_OBJECT(a),b,c,d,e)
VLC_EXPORT( vout_thread_t *, __vout_CreateThread, ( vlc_object_t *, int, int, u32, int ) ); VLC_EXPORT( vout_thread_t *, __vout_CreateThread, ( vlc_object_t *, int, int, uint32_t, int ) );
VLC_EXPORT( void, vout_DestroyThread, ( vout_thread_t * ) ); VLC_EXPORT( void, vout_DestroyThread, ( vout_thread_t * ) );
VLC_EXPORT( int, vout_ChromaCmp, ( u32, u32 ) ); VLC_EXPORT( int, vout_ChromaCmp, ( uint32_t, uint32_t ) );
VLC_EXPORT( picture_t *, vout_CreatePicture, ( vout_thread_t *, vlc_bool_t, vlc_bool_t, vlc_bool_t ) ); VLC_EXPORT( picture_t *, vout_CreatePicture, ( vout_thread_t *, vlc_bool_t, vlc_bool_t, vlc_bool_t ) );
VLC_EXPORT( void, vout_AllocatePicture,( vout_thread_t *, picture_t *, int, int, u32 ) ); VLC_EXPORT( void, vout_AllocatePicture,( vout_thread_t *, picture_t *, int, int, uint32_t ) );
VLC_EXPORT( void, vout_DestroyPicture, ( vout_thread_t *, picture_t * ) ); VLC_EXPORT( void, vout_DestroyPicture, ( vout_thread_t *, picture_t * ) );
VLC_EXPORT( void, vout_DisplayPicture, ( vout_thread_t *, picture_t * ) ); VLC_EXPORT( void, vout_DisplayPicture, ( vout_thread_t *, picture_t * ) );
VLC_EXPORT( void, vout_DatePicture, ( vout_thread_t *, picture_t *, mtime_t ) ); VLC_EXPORT( void, vout_DatePicture, ( vout_thread_t *, picture_t *, mtime_t ) );
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* Collection of useful common types and macros definitions * Collection of useful common types and macros definitions
***************************************************************************** *****************************************************************************
* Copyright (C) 1998, 1999, 2000 VideoLAN * Copyright (C) 1998, 1999, 2000 VideoLAN
* $Id: vlc_common.h,v 1.36 2002/11/10 23:41:53 sam Exp $ * $Id: vlc_common.h,v 1.37 2002/11/11 14:39:11 sam Exp $
* *
* Authors: Samuel Hocevar <sam@via.ecp.fr> * Authors: Samuel Hocevar <sam@via.ecp.fr>
* Vincent Seguin <seguin@via.ecp.fr> * Vincent Seguin <seguin@via.ecp.fr>
...@@ -74,7 +74,9 @@ ...@@ -74,7 +74,9 @@
typedef signed short int16_t; typedef signed short int16_t;
typedef unsigned int uint32_t; typedef unsigned int uint32_t;
typedef signed int int32_t; typedef signed int int32_t;
# if defined( _MSC_VER ) || ( defined( WIN32 ) && !defined( __MINGW32__ ) ) # if defined( _MSC_VER ) \
|| defined( UNDER_CE ) \
|| ( defined( WIN32 ) && !defined( __MINGW32__ ) )
typedef unsigned __int64 uint64_t; typedef unsigned __int64 uint64_t;
typedef signed __int64 int64_t; typedef signed __int64 int64_t;
# else # else
...@@ -97,7 +99,7 @@ typedef int ptrdiff_t; ...@@ -97,7 +99,7 @@ typedef int ptrdiff_t;
# endif # endif
#endif #endif
#if defined( WIN32 ) #if defined( WIN32 ) || defined( UNDER_CE )
typedef int ssize_t; typedef int ssize_t;
#endif #endif
...@@ -272,7 +274,7 @@ typedef int ( * vlc_callback_t ) ( vlc_object_t *, /* variable's object */ ...@@ -272,7 +274,7 @@ typedef int ( * vlc_callback_t ) ( vlc_object_t *, /* variable's object */
/***************************************************************************** /*****************************************************************************
* OS-specific headers and thread types * OS-specific headers and thread types
*****************************************************************************/ *****************************************************************************/
#if defined( WIN32 ) #if defined( WIN32 ) || defined( UNDER_CE )
# define WIN32_LEAN_AND_MEAN # define WIN32_LEAN_AND_MEAN
# include <windows.h> # include <windows.h>
#endif #endif
...@@ -334,7 +336,7 @@ typedef int ( * vlc_callback_t ) ( vlc_object_t *, /* variable's object */ ...@@ -334,7 +336,7 @@ typedef int ( * vlc_callback_t ) ( vlc_object_t *, /* variable's object */
#ifdef NTOHL_IN_SYS_PARAM_H #ifdef NTOHL_IN_SYS_PARAM_H
# include <sys/param.h> # include <sys/param.h>
#elif !defined(WIN32) /* NTOHL_IN_SYS_PARAM_H || WIN32 */ #elif !defined(WIN32) && !defined( UNDER_CE )
# include <netinet/in.h> # include <netinet/in.h>
#endif /* NTOHL_IN_SYS_PARAM_H || WIN32 */ #endif /* NTOHL_IN_SYS_PARAM_H || WIN32 */
...@@ -503,7 +505,7 @@ static inline uint64_t U64_AT( void * _p ) ...@@ -503,7 +505,7 @@ static inline uint64_t U64_AT( void * _p )
#endif #endif
/* Format type specifiers for 64 bits numbers */ /* Format type specifiers for 64 bits numbers */
#if !defined(WIN32) #if !defined(WIN32) && !defined(UNDER_CE)
# define I64Fd "%lld" # define I64Fd "%lld"
# define I64Fi "%lli" # define I64Fi "%lli"
# define I64Fo "%llo" # define I64Fo "%llo"
...@@ -517,16 +519,16 @@ static inline uint64_t U64_AT( void * _p ) ...@@ -517,16 +519,16 @@ static inline uint64_t U64_AT( void * _p )
# define I64Fu "%I64u" # define I64Fu "%I64u"
# define I64Fx "%I64x" # define I64Fx "%I64x"
# define I64FX "%I64X" # define I64FX "%I64X"
#endif /* defined(WIN32) */ #endif /* defined(WIN32)||defined(UNDER_CE) */
/* 64 bits integer constant suffix */ /* 64 bits integer constant suffix */
#if !defined(WIN32) #if !defined(WIN32) && !defined(UNDER_CE)
# define I64C(x) x##LL # define I64C(x) x##LL
#else #else
# define I64C(x) x##i64 # define I64C(x) x##i64
#endif /* defined(WIN32) */ #endif /* defined(WIN32)||defined(UNDER_CE) */
#ifdef WIN32 #if defined(WIN32) && !defined(UNDER_CE)
/* win32, cl and icl support */ /* win32, cl and icl support */
# if defined( _MSC_VER ) || !defined( __MINGW32__ ) # if defined( _MSC_VER ) || !defined( __MINGW32__ )
# define __attribute__(x) # define __attribute__(x)
......
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
/* The configuration file and directory */ /* The configuration file and directory */
#ifdef SYS_BEOS #ifdef SYS_BEOS
# define CONFIG_DIR "config/settings" # define CONFIG_DIR "config/settings"
#elif defined( WIN32 ) #elif defined( WIN32 ) || defined( UNDER_CE )
# define CONFIG_DIR "vlc" # define CONFIG_DIR "vlc"
#else #else
# define CONFIG_DIR ".vlc" # define CONFIG_DIR ".vlc"
...@@ -108,7 +108,7 @@ ...@@ -108,7 +108,7 @@
#define DEFAULT_PTS_DELAY (mtime_t)(.3*CLOCK_FREQ) #define DEFAULT_PTS_DELAY (mtime_t)(.3*CLOCK_FREQ)
/* DVD and VCD devices */ /* DVD and VCD devices */
#ifndef WIN32 #if !defined( WIN32 ) && !defined( UNDER_CE )
# define DVD_DEVICE "/dev/dvd" # define DVD_DEVICE "/dev/dvd"
# define VCD_DEVICE "/dev/cdrom" # define VCD_DEVICE "/dev/cdrom"
#else #else
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* cpu.h: CPU type detection * cpu.h: CPU type detection
***************************************************************************** *****************************************************************************
* Copyright (C) 2002 VideoLAN * Copyright (C) 2002 VideoLAN
* $Id: vlc_cpu.h,v 1.4 2002/10/03 13:21:54 sam Exp $ * $Id: vlc_cpu.h,v 1.5 2002/11/11 14:39:11 sam Exp $
* *
* Authors: Samuel Hocevar <sam@zoy.org> * Authors: Samuel Hocevar <sam@zoy.org>
* *
...@@ -21,5 +21,5 @@ ...@@ -21,5 +21,5 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
*****************************************************************************/ *****************************************************************************/
u32 CPUCapabilities( void ); uint32_t CPUCapabilities( void );
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* This header provides portable declarations for mutexes & conditions * This header provides portable declarations for mutexes & conditions
***************************************************************************** *****************************************************************************
* Copyright (C) 1999, 2002 VideoLAN * Copyright (C) 1999, 2002 VideoLAN
* $Id: vlc_threads.h,v 1.17 2002/11/10 18:04:22 sam Exp $ * $Id: vlc_threads.h,v 1.18 2002/11/11 14:39:11 sam Exp $
* *
* Authors: Jean-Marc Dressler <polux@via.ecp.fr> * Authors: Jean-Marc Dressler <polux@via.ecp.fr>
* Samuel Hocevar <sam@via.ecp.fr> * Samuel Hocevar <sam@via.ecp.fr>
...@@ -39,12 +39,10 @@ ...@@ -39,12 +39,10 @@
#elif defined( ST_INIT_IN_ST_H ) /* State threads */ #elif defined( ST_INIT_IN_ST_H ) /* State threads */
# include <st.h> # include <st.h>
#elif defined( WIN32 ) #elif defined( UNDER_CE )
# if defined( UNDER_CE )
/* WinCE API */ /* WinCE API */
# else #elif defined( WIN32 )
# include <process.h> /* Win32 API */ # include <process.h> /* Win32 API */
# endif
#elif defined( PTHREAD_COND_T_IN_PTHREAD_H ) /* pthreads (like Linux & BSD) */ #elif defined( PTHREAD_COND_T_IN_PTHREAD_H ) /* pthreads (like Linux & BSD) */
# include <pthread.h> # include <pthread.h>
...@@ -80,7 +78,7 @@ ...@@ -80,7 +78,7 @@
# define VLC_THREAD_PRIORITY_VIDEO 31 # define VLC_THREAD_PRIORITY_VIDEO 31
# define VLC_THREAD_PRIORITY_OUTPUT 31 # define VLC_THREAD_PRIORITY_OUTPUT 31
#elif defined(WIN32) #elif defined(WIN32) || defined(UNDER_CE)
# define VLC_THREAD_PRIORITY_LOW 0 # define VLC_THREAD_PRIORITY_LOW 0
# define VLC_THREAD_PRIORITY_INPUT THREAD_PRIORITY_TIME_CRITICAL # define VLC_THREAD_PRIORITY_INPUT THREAD_PRIORITY_TIME_CRITICAL
# define VLC_THREAD_PRIORITY_AUDIO THREAD_PRIORITY_HIGHEST # define VLC_THREAD_PRIORITY_AUDIO THREAD_PRIORITY_HIGHEST
...@@ -126,7 +124,7 @@ typedef struct ...@@ -126,7 +124,7 @@ typedef struct
vlc_object_t * p_this; vlc_object_t * p_this;
} vlc_cond_t; } vlc_cond_t;
#elif defined( WIN32 ) #elif defined( WIN32 ) || defined( UNDER_CE )
typedef HANDLE vlc_thread_t; typedef HANDLE vlc_thread_t;
typedef BOOL (WINAPI *SIGNALOBJECTANDWAIT) ( HANDLE, HANDLE, DWORD, BOOL ); typedef BOOL (WINAPI *SIGNALOBJECTANDWAIT) ( HANDLE, HANDLE, DWORD, BOOL );
typedef unsigned (__stdcall *PTHREAD_START) (void *); typedef unsigned (__stdcall *PTHREAD_START) (void *);
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* This header provides a portable threads implementation. * This header provides a portable threads implementation.
***************************************************************************** *****************************************************************************
* Copyright (C) 1999, 2002 VideoLAN * Copyright (C) 1999, 2002 VideoLAN
* $Id: vlc_threads_funcs.h,v 1.8 2002/11/10 18:04:22 sam Exp $ * $Id: vlc_threads_funcs.h,v 1.9 2002/11/11 14:39:11 sam Exp $
* *
* Authors: Jean-Marc Dressler <polux@via.ecp.fr> * Authors: Jean-Marc Dressler <polux@via.ecp.fr>
* Samuel Hocevar <sam@via.ecp.fr> * Samuel Hocevar <sam@via.ecp.fr>
...@@ -76,6 +76,10 @@ static inline int __vlc_mutex_lock( char * psz_file, int i_line, ...@@ -76,6 +76,10 @@ static inline int __vlc_mutex_lock( char * psz_file, int i_line,
#elif defined( ST_INIT_IN_ST_H ) #elif defined( ST_INIT_IN_ST_H )
i_result = st_mutex_lock( p_mutex->mutex ); i_result = st_mutex_lock( p_mutex->mutex );
#elif defined( UNDER_CE )
EnterCriticalSection( &p_mutex->csection );
return 0;
#elif defined( WIN32 ) #elif defined( WIN32 )
if( p_mutex->mutex ) if( p_mutex->mutex )
{ {
...@@ -143,6 +147,10 @@ static inline int __vlc_mutex_unlock( char * psz_file, int i_line, ...@@ -143,6 +147,10 @@ static inline int __vlc_mutex_unlock( char * psz_file, int i_line,
#elif defined( ST_INIT_IN_ST_H ) #elif defined( ST_INIT_IN_ST_H )
i_result = st_mutex_unlock( p_mutex->mutex ); i_result = st_mutex_unlock( p_mutex->mutex );
#elif defined( UNDER_CE )
LeaveCriticalSection( &p_mutex->csection );
return 0;
#elif defined( WIN32 ) #elif defined( WIN32 )
if( p_mutex->mutex ) if( p_mutex->mutex )
{ {
...@@ -224,6 +232,10 @@ static inline int __vlc_cond_signal( char * psz_file, int i_line, ...@@ -224,6 +232,10 @@ static inline int __vlc_cond_signal( char * psz_file, int i_line,
#elif defined( ST_INIT_IN_ST_H ) #elif defined( ST_INIT_IN_ST_H )
i_result = st_cond_signal( p_condvar->cond ); i_result = st_cond_signal( p_condvar->cond );
#elif defined( UNDER_CE )
PulseEvent( p_condvar->event );
return 0;
#elif defined( WIN32 ) #elif defined( WIN32 )
/* Release one waiting thread if one is available. */ /* Release one waiting thread if one is available. */
/* For this trick to work properly, the vlc_cond_signal must be surrounded /* For this trick to work properly, the vlc_cond_signal must be surrounded
...@@ -232,7 +244,6 @@ static inline int __vlc_cond_signal( char * psz_file, int i_line, ...@@ -232,7 +244,6 @@ static inline int __vlc_cond_signal( char * psz_file, int i_line,
{ {
PulseEvent( p_condvar->event ); PulseEvent( p_condvar->event );
} }
# ifndef UNDER_CE
else if( p_condvar->i_win9x_cv == 1 ) else if( p_condvar->i_win9x_cv == 1 )
{ {
/* Wait for the gate to be open */ /* Wait for the gate to be open */
...@@ -264,7 +275,6 @@ static inline int __vlc_cond_signal( char * psz_file, int i_line, ...@@ -264,7 +275,6 @@ static inline int __vlc_cond_signal( char * psz_file, int i_line,
WaitForSingleObject( p_condvar->event, INFINITE ); WaitForSingleObject( p_condvar->event, INFINITE );
} }
} }
# endif
return 0; return 0;
#elif defined( PTHREAD_COND_T_IN_PTHREAD_H ) #elif defined( PTHREAD_COND_T_IN_PTHREAD_H )
...@@ -357,6 +367,16 @@ static inline int __vlc_cond_broadcast( char * psz_file, int i_line, ...@@ -357,6 +367,16 @@ static inline int __vlc_cond_broadcast( char * psz_file, int i_line,
#elif defined( ST_INIT_IN_ST_H ) #elif defined( ST_INIT_IN_ST_H )
i_result = st_cond_broadcast( p_condvar->cond ); i_result = st_cond_broadcast( p_condvar->cond );
#elif defined( UNDER_CE )
int i;
/* Release all waiting threads. */
for( i = p_condvar->i_waiting_threads; i > 0; i-- )
{
PulseEvent( p_condvar->event );
}
return 0;
#elif defined( WIN32 ) #elif defined( WIN32 )
int i; int i;
...@@ -368,7 +388,6 @@ static inline int __vlc_cond_broadcast( char * psz_file, int i_line, ...@@ -368,7 +388,6 @@ static inline int __vlc_cond_broadcast( char * psz_file, int i_line,
PulseEvent( p_condvar->event ); PulseEvent( p_condvar->event );
} }
} }
# ifndef UNDER_CE
else if( p_condvar->i_win9x_cv == 1 ) else if( p_condvar->i_win9x_cv == 1 )
{ {
/* Wait for the gate to be open */ /* Wait for the gate to be open */
...@@ -402,7 +421,6 @@ static inline int __vlc_cond_broadcast( char * psz_file, int i_line, ...@@ -402,7 +421,6 @@ static inline int __vlc_cond_broadcast( char * psz_file, int i_line,
WaitForSingleObject( p_condvar->event, INFINITE ); WaitForSingleObject( p_condvar->event, INFINITE );
} }
} }
# endif
return 0; return 0;
#elif defined( PTHREAD_COND_T_IN_PTHREAD_H ) #elif defined( PTHREAD_COND_T_IN_PTHREAD_H )
...@@ -491,6 +509,17 @@ static inline int __vlc_cond_wait( char * psz_file, int i_line, ...@@ -491,6 +509,17 @@ static inline int __vlc_cond_wait( char * psz_file, int i_line,
i_result = st_cond_wait( p_condvar->cond ); i_result = st_cond_wait( p_condvar->cond );
st_mutex_lock( p_mutex->mutex ); st_mutex_lock( p_mutex->mutex );
#elif defined( UNDER_CE )
p_condvar->i_waiting_threads++;
LeaveCriticalSection( &p_mutex->csection );
WaitForSingleObject( p_condvar->event, INFINITE );
p_condvar->i_waiting_threads--;
/* Reacquire the mutex before returning. */
vlc_mutex_lock( p_mutex );
return 0;
#elif defined( WIN32 ) #elif defined( WIN32 )
if( !p_condvar->semaphore ) if( !p_condvar->semaphore )
{ {
......
...@@ -9,9 +9,9 @@ ...@@ -9,9 +9,9 @@
* Significantly revised and rewinddir, seekdir and telldir added by Colin * Significantly revised and rewinddir, seekdir and telldir added by Colin
* Peters <colin@fu.is.saga-u.ac.jp> * Peters <colin@fu.is.saga-u.ac.jp>
* *
* $Revision: 1.4 $ * $Revision: 1.5 $
* $Author: sam $ * $Author: sam $
* $Date: 2002/11/10 23:41:53 $ * $Date: 2002/11/11 14:39:12 $
* *
*/ */
...@@ -94,7 +94,7 @@ opendir (const CHAR *szPath) ...@@ -94,7 +94,7 @@ opendir (const CHAR *szPath)
} }
else else
{ {
/* FIXME: if I wasn't lazy, I'dcheck for overflows here. */ /* FIXME: if I wasn't lazy, I'd check for overflows here. */
sprintf (szFullPath, MAX_PATH, "\\%s", szPath ); sprintf (szFullPath, MAX_PATH, "\\%s", szPath );
} }
#else #else
......
...@@ -81,7 +81,7 @@ ...@@ -81,7 +81,7 @@
#endif #endif
#endif #endif
#if defined (WIN32) && !defined (__CYGWIN32__) #if defined (WIN32) && !defined (__CYGWIN32__) || defined(UNDER_CE)
/* It's not Unix, really. See? Capital letters. */ /* It's not Unix, really. See? Capital letters. */
#include <windows.h> #include <windows.h>
#define getpid() GetCurrentProcessId() #define getpid() GetCurrentProcessId()
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* decoders. * decoders.
***************************************************************************** *****************************************************************************
* Copyright (C) 1998-2002 VideoLAN * Copyright (C) 1998-2002 VideoLAN
* $Id: input.c,v 1.214 2002/11/10 18:04:23 sam Exp $ * $Id: input.c,v 1.215 2002/11/11 14:39:12 sam Exp $
* *
* Authors: Christophe Massiot <massiot@via.ecp.fr> * Authors: Christophe Massiot <massiot@via.ecp.fr>
* *
...@@ -30,16 +30,6 @@ ...@@ -30,16 +30,6 @@
#include <vlc/vlc.h> #include <vlc/vlc.h>
#ifdef HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
#ifdef HAVE_SYS_STAT_H
# include <sys/stat.h>
#endif
#ifdef HAVE_FCNTL_H
# include <fcntl.h>
#endif
#include <string.h> #include <string.h>
#ifdef HAVE_SYS_TIMES_H #ifdef HAVE_SYS_TIMES_H
...@@ -388,11 +378,11 @@ static int InitThread( input_thread_t * p_input ) ...@@ -388,11 +378,11 @@ static int InitThread( input_thread_t * p_input )
{ {
psz_parser++; psz_parser++;
} }
#ifdef WIN32 #if defined( WIN32 ) || defined( UNDER_CE )
if( psz_parser - p_input->psz_source == 1 ) if( psz_parser - p_input->psz_source == 1 )
{ {
msg_Warn( p_input, "drive letter %c: found in source string", msg_Warn( p_input, "drive letter %c: found in source string",
p_input->psz_source ) ; p_input->psz_source[0] ) ;
psz_parser = ""; psz_parser = "";
} }
#endif #endif
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* input_clock.c: Clock/System date convertions, stream management * input_clock.c: Clock/System date convertions, stream management
***************************************************************************** *****************************************************************************
* Copyright (C) 1999-2001 VideoLAN * Copyright (C) 1999-2001 VideoLAN
* $Id: input_clock.c,v 1.33 2002/11/10 18:04:23 sam Exp $ * $Id: input_clock.c,v 1.34 2002/11/11 14:39:12 sam Exp $
* *
* Authors: Christophe Massiot <massiot@via.ecp.fr> * Authors: Christophe Massiot <massiot@via.ecp.fr>
* *
...@@ -28,10 +28,6 @@ ...@@ -28,10 +28,6 @@
#include <vlc/vlc.h> #include <vlc/vlc.h>
#ifdef HAVE_SYS_TYPES_H
# include <sys/types.h> /* off_t */
#endif
#include "stream_control.h" #include "stream_control.h"
#include "input_ext-intf.h" #include "input_ext-intf.h"
#include "input_ext-dec.h" #include "input_ext-dec.h"
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* input_dec.c: Functions for the management of decoders * input_dec.c: Functions for the management of decoders
***************************************************************************** *****************************************************************************
* Copyright (C) 1999-2001 VideoLAN * Copyright (C) 1999-2001 VideoLAN
* $Id: input_dec.c,v 1.50 2002/11/10 18:04:23 sam Exp $ * $Id: input_dec.c,v 1.51 2002/11/11 14:39:12 sam Exp $
* *
* Authors: Christophe Massiot <massiot@via.ecp.fr> * Authors: Christophe Massiot <massiot@via.ecp.fr>
* *
...@@ -29,10 +29,6 @@ ...@@ -29,10 +29,6 @@
#include <vlc/vlc.h> #include <vlc/vlc.h>
#ifdef HAVE_SYS_TYPES_H
# include <sys/types.h> /* off_t */
#endif
#include "stream_control.h" #include "stream_control.h"
#include "input_ext-dec.h" #include "input_ext-dec.h"
#include "input_ext-intf.h" #include "input_ext-intf.h"
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* input_ext-dec.c: services to the decoders * input_ext-dec.c: services to the decoders
***************************************************************************** *****************************************************************************
* Copyright (C) 1998-2001 VideoLAN * Copyright (C) 1998-2001 VideoLAN
* $Id: input_ext-dec.c,v 1.40 2002/11/10 18:04:23 sam Exp $ * $Id: input_ext-dec.c,v 1.41 2002/11/11 14:39:12 sam Exp $
* *
* Authors: Christophe Massiot <massiot@via.ecp.fr> * Authors: Christophe Massiot <massiot@via.ecp.fr>
* *
...@@ -28,10 +28,6 @@ ...@@ -28,10 +28,6 @@
#include <vlc/vlc.h> #include <vlc/vlc.h>
#ifdef HAVE_SYS_TYPES_H
# include <sys/types.h> /* off_t */
#endif
#include "stream_control.h" #include "stream_control.h"
#include "input_ext-dec.h" #include "input_ext-dec.h"
#include "input_ext-intf.h" #include "input_ext-intf.h"
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* input_ext-intf.c: services to the interface * input_ext-intf.c: services to the interface
***************************************************************************** *****************************************************************************
* Copyright (C) 1998-2001 VideoLAN * Copyright (C) 1998-2001 VideoLAN
* $Id: input_ext-intf.c,v 1.42 2002/11/10 18:04:23 sam Exp $ * $Id: input_ext-intf.c,v 1.43 2002/11/11 14:39:12 sam Exp $
* *
* Authors: Christophe Massiot <massiot@via.ecp.fr> * Authors: Christophe Massiot <massiot@via.ecp.fr>
* *
...@@ -28,10 +28,6 @@ ...@@ -28,10 +28,6 @@
#include <vlc/vlc.h> #include <vlc/vlc.h>
#ifdef HAVE_SYS_TYPES_H
# include <sys/types.h> /* off_t */
#endif
#include "stream_control.h" #include "stream_control.h"
#include "input_ext-dec.h" #include "input_ext-dec.h"
#include "input_ext-intf.h" #include "input_ext-intf.h"
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* input_ext-plugins.c: useful functions for access and demux plug-ins * input_ext-plugins.c: useful functions for access and demux plug-ins
***************************************************************************** *****************************************************************************
* Copyright (C) 2001, 2002 VideoLAN * Copyright (C) 2001, 2002 VideoLAN
* $Id: input_ext-plugins.c,v 1.21 2002/11/10 23:41:53 sam Exp $ * $Id: input_ext-plugins.c,v 1.22 2002/11/11 14:39:12 sam Exp $
* *
* Authors: Christophe Massiot <massiot@via.ecp.fr> * Authors: Christophe Massiot <massiot@via.ecp.fr>
* *
...@@ -52,7 +52,7 @@ ...@@ -52,7 +52,7 @@
#endif #endif
#ifdef UNDER_CE #ifdef UNDER_CE
/* No network support */ /* No network support (FIXME: use winsock1?) */
#elif defined( WIN32 ) #elif defined( WIN32 )
# include <winsock2.h> # include <winsock2.h>
# include <ws2tcpip.h> # include <ws2tcpip.h>
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* input_info.c: Convenient functions to handle the input info structures * input_info.c: Convenient functions to handle the input info structures
***************************************************************************** *****************************************************************************
* Copyright (C) 1998-2001 VideoLAN * Copyright (C) 1998-2001 VideoLAN
* $Id: input_info.c,v 1.8 2002/11/10 18:04:23 sam Exp $ * $Id: input_info.c,v 1.9 2002/11/11 14:39:12 sam Exp $
* *
* Authors: Sigmund Augdal <sigmunau@idi.ntnu.no> * Authors: Sigmund Augdal <sigmunau@idi.ntnu.no>
* *
...@@ -29,10 +29,6 @@ ...@@ -29,10 +29,6 @@
#include <vlc/vlc.h> #include <vlc/vlc.h>
#ifdef HAVE_SYS_TYPES_H
# include <sys/types.h> /* off_t */
#endif
#include "stream_control.h" #include "stream_control.h"
#include "input_ext-intf.h" #include "input_ext-intf.h"
#include "interface.h" #include "interface.h"
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* input_programs.c: es_descriptor_t, pgrm_descriptor_t management * input_programs.c: es_descriptor_t, pgrm_descriptor_t management
***************************************************************************** *****************************************************************************
* Copyright (C) 1999-2002 VideoLAN * Copyright (C) 1999-2002 VideoLAN
* $Id: input_programs.c,v 1.97 2002/11/10 18:04:23 sam Exp $ * $Id: input_programs.c,v 1.98 2002/11/11 14:39:12 sam Exp $
* *
* Authors: Christophe Massiot <massiot@via.ecp.fr> * Authors: Christophe Massiot <massiot@via.ecp.fr>
* *
...@@ -29,10 +29,6 @@ ...@@ -29,10 +29,6 @@
#include <vlc/vlc.h> #include <vlc/vlc.h>
#ifdef HAVE_SYS_TYPES_H
# include <sys/types.h> /* off_t */
#endif
#include "stream_control.h" #include "stream_control.h"
#include "input_ext-intf.h" #include "input_ext-intf.h"
#include "input_ext-dec.h" #include "input_ext-dec.h"
...@@ -637,7 +633,7 @@ int input_UnselectES( input_thread_t * p_input, es_descriptor_t * p_es ) ...@@ -637,7 +633,7 @@ int input_UnselectES( input_thread_t * p_input, es_descriptor_t * p_es )
i_index++; i_index++;
} }
/* XXX: no need to memmove, we have unordered data */ /* XXX: no need to memmove, we have unsorted data */
REMOVE_ELEM( p_input->stream.pp_selected_es, REMOVE_ELEM( p_input->stream.pp_selected_es,
p_input->stream.i_selected_es_number, p_input->stream.i_selected_es_number,
i_index ); i_index );
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* intf_eject.c: CD/DVD-ROM ejection handling functions * intf_eject.c: CD/DVD-ROM ejection handling functions
***************************************************************************** *****************************************************************************
* Copyright (C) 2001, 2002 VideoLAN * Copyright (C) 2001, 2002 VideoLAN
* $Id: intf_eject.c,v 1.16 2002/11/10 18:04:23 sam Exp $ * $Id: intf_eject.c,v 1.17 2002/11/11 14:39:12 sam Exp $
* *
* Author: Julien Blache <jb@technologeek.org> for the Linux part * Author: Julien Blache <jb@technologeek.org> for the Linux part
* with code taken from the Linux "eject" command * with code taken from the Linux "eject" command
...@@ -154,13 +154,11 @@ int __intf_Eject( vlc_object_t *p_this, const char *psz_device ) ...@@ -154,13 +154,11 @@ int __intf_Eject( vlc_object_t *p_this, const char *psz_device )
return 1; return 1;
#elif defined(WIN32) #elif defined(UNDER_CE)
#if defined(UNDER_CE)
msg_Warn( p_this, "CD-Rom ejection unsupported on this platform" ); msg_Warn( p_this, "CD-Rom ejection unsupported on this platform" );
i_ret = -1; return 1;
#else #elif defined(WIN32)
HANDLE h_drive ; HANDLE h_drive ;
TCHAR psz_drive_id[8] ; TCHAR psz_drive_id[8] ;
DWORD dw_access_flags = GENERIC_READ ; DWORD dw_access_flags = GENERIC_READ ;
...@@ -220,7 +218,6 @@ int __intf_Eject( vlc_object_t *p_this, const char *psz_device ) ...@@ -220,7 +218,6 @@ int __intf_Eject( vlc_object_t *p_this, const char *psz_device )
CloseHandle (h_drive) ; CloseHandle (h_drive) ;
return (i_ret) ; return (i_ret) ;
} }
#endif /* UNDER_CE */
#else /* WIN32 */ #else /* WIN32 */
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* configuration.c management of the modules configuration * configuration.c management of the modules configuration
***************************************************************************** *****************************************************************************
* Copyright (C) 2001 VideoLAN * Copyright (C) 2001 VideoLAN
* $Id: configuration.c,v 1.44 2002/11/10 23:41:53 sam Exp $ * $Id: configuration.c,v 1.45 2002/11/11 14:39:12 sam Exp $
* *
* Authors: Gildas Bazin <gbazin@netcourrier.com> * Authors: Gildas Bazin <gbazin@netcourrier.com>
* *
...@@ -1216,7 +1216,7 @@ char *config_GetHomeDir( void ) ...@@ -1216,7 +1216,7 @@ char *config_GetHomeDir( void )
struct passwd *p_pw = NULL; struct passwd *p_pw = NULL;
#endif #endif
#ifdef WIN32 #if defined(WIN32) || defined(UNDER_CE)
typedef HRESULT (WINAPI *SHGETFOLDERPATH)( HWND, int, HANDLE, DWORD, typedef HRESULT (WINAPI *SHGETFOLDERPATH)( HWND, int, HANDLE, DWORD,
LPTSTR ); LPTSTR );
# define CSIDL_FLAG_CREATE 0x8000 # define CSIDL_FLAG_CREATE 0x8000
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* cpu.c: CPU detection code * cpu.c: CPU detection code
***************************************************************************** *****************************************************************************
* Copyright (C) 1998-2002 VideoLAN * Copyright (C) 1998-2002 VideoLAN
* $Id: cpu.c,v 1.8 2002/11/10 18:04:24 sam Exp $ * $Id: cpu.c,v 1.9 2002/11/11 14:39:12 sam Exp $
* *
* Authors: Samuel Hocevar <sam@zoy.org> * Authors: Samuel Hocevar <sam@zoy.org>
* Christophe Massiot <massiot@via.ecp.fr> * Christophe Massiot <massiot@via.ecp.fr>
...@@ -65,9 +65,9 @@ static char *psz_capability; ...@@ -65,9 +65,9 @@ static char *psz_capability;
***************************************************************************** *****************************************************************************
* This function is called to list extensions the CPU may have. * This function is called to list extensions the CPU may have.
*****************************************************************************/ *****************************************************************************/
u32 CPUCapabilities( void ) uint32_t CPUCapabilities( void )
{ {
volatile u32 i_capabilities = CPU_CAPABILITY_NONE; volatile uint32_t i_capabilities = CPU_CAPABILITY_NONE;
#if defined( SYS_DARWIN ) #if defined( SYS_DARWIN )
struct host_basic_info hi; struct host_basic_info hi;
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* modules, especially intf modules. See config.h for output configuration. * modules, especially intf modules. See config.h for output configuration.
***************************************************************************** *****************************************************************************
* Copyright (C) 1998-2002 VideoLAN * Copyright (C) 1998-2002 VideoLAN
* $Id: messages.c,v 1.21 2002/11/10 18:04:24 sam Exp $ * $Id: messages.c,v 1.22 2002/11/11 14:39:12 sam Exp $
* *
* Authors: Vincent Seguin <seguin@via.ecp.fr> * Authors: Vincent Seguin <seguin@via.ecp.fr>
* Samuel Hocevar <sam@zoy.org> * Samuel Hocevar <sam@zoy.org>
...@@ -454,7 +454,7 @@ static void PrintMsg ( vlc_object_t * p_this, msg_item_t * p_item ) ...@@ -454,7 +454,7 @@ static void PrintMsg ( vlc_object_t * p_this, msg_item_t * p_item )
p_item->psz_msg ); p_item->psz_msg );
} }
#if defined(WIN32) #if defined(WIN32) || defined(UNDER_CE)
fflush( stderr ); fflush( stderr );
#endif #endif
} }
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* modules.c : Builtin and plugin modules management functions * modules.c : Builtin and plugin modules management functions
***************************************************************************** *****************************************************************************
* Copyright (C) 2001 VideoLAN * Copyright (C) 2001 VideoLAN
* $Id: modules.c,v 1.102 2002/11/10 18:04:24 sam Exp $ * $Id: modules.c,v 1.103 2002/11/11 14:39:12 sam Exp $
* *
* Authors: Samuel Hocevar <sam@zoy.org> * Authors: Samuel Hocevar <sam@zoy.org>
* Ethan C. Baldridge <BaldridgeE@cadmus.com> * Ethan C. Baldridge <BaldridgeE@cadmus.com>
...@@ -57,6 +57,8 @@ ...@@ -57,6 +57,8 @@
#elif defined(HAVE_IMAGE_H) /* BeOS */ #elif defined(HAVE_IMAGE_H) /* BeOS */
# include <image.h> # include <image.h>
# define HAVE_DYNAMIC_PLUGINS # define HAVE_DYNAMIC_PLUGINS
#elif defined(UNDER_CE)
# define HAVE_DYNAMIC_PLUGINS
#elif defined(WIN32) #elif defined(WIN32)
# define HAVE_DYNAMIC_PLUGINS # define HAVE_DYNAMIC_PLUGINS
#else #else
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* modules_plugin.h : Plugin management functions used by the core application. * modules_plugin.h : Plugin management functions used by the core application.
***************************************************************************** *****************************************************************************
* Copyright (C) 2001 VideoLAN * Copyright (C) 2001 VideoLAN
* $Id: modules_plugin.h.in,v 1.5 2002/10/31 11:16:30 sam Exp $ * $Id: modules_plugin.h.in,v 1.6 2002/11/11 14:39:12 sam Exp $
* *
* Authors: Samuel Hocevar <sam@zoy.org> * Authors: Samuel Hocevar <sam@zoy.org>
* *
...@@ -37,7 +37,7 @@ static int module_load( const char * psz_filename, module_handle_t * handle ) ...@@ -37,7 +37,7 @@ static int module_load( const char * psz_filename, module_handle_t * handle )
*handle = load_add_on( psz_filename ); *handle = load_add_on( psz_filename );
return( *handle < 0 ); return( *handle < 0 );
#elif defined(WIN32) #elif defined(WIN32) || defined(UNDER_CE)
*handle = LoadLibrary( psz_filename ); *handle = LoadLibrary( psz_filename );
return( *handle == NULL ); return( *handle == NULL );
...@@ -74,7 +74,7 @@ static void module_unload( module_handle_t handle ) ...@@ -74,7 +74,7 @@ static void module_unload( module_handle_t handle )
#ifdef SYS_BEOS #ifdef SYS_BEOS
unload_add_on( handle ); unload_add_on( handle );
#elif defined(WIN32) #elif defined(WIN32) || defined(UNDER_CE)
FreeLibrary( handle ); FreeLibrary( handle );
#else #else
...@@ -106,7 +106,7 @@ static void * _module_getsymbol( module_handle_t handle, ...@@ -106,7 +106,7 @@ static void * _module_getsymbol( module_handle_t handle,
return( NULL ); return( NULL );
} }
#elif defined(WIN32) #elif defined(WIN32) || defined(UNDER_CE)
return( (void *)GetProcAddress( handle, psz_function ) ); return( (void *)GetProcAddress( handle, psz_function ) );
#else #else
...@@ -149,7 +149,7 @@ static const char * module_error( char *psz_buffer ) ...@@ -149,7 +149,7 @@ static const char * module_error( char *psz_buffer )
#if defined(SYS_BEOS) #if defined(SYS_BEOS)
return( "failed" ); return( "failed" );
#elif defined(WIN32) #elif defined(WIN32) || defined(UNDER_CE)
int i, i_error = GetLastError(); int i, i_error = GetLastError();
FormatMessage( FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS, FormatMessage( FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS,
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* Functions are prototyped in mtime.h. * Functions are prototyped in mtime.h.
***************************************************************************** *****************************************************************************
* Copyright (C) 1998-2001 VideoLAN * Copyright (C) 1998-2001 VideoLAN
* $Id: mtime.c,v 1.34 2002/08/08 00:35:11 sam Exp $ * $Id: mtime.c,v 1.35 2002/11/11 14:39:12 sam Exp $
* *
* Authors: Vincent Seguin <seguin@via.ecp.fr> * Authors: Vincent Seguin <seguin@via.ecp.fr>
* *
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
# include <kernel/OS.h> # include <kernel/OS.h>
#endif #endif
#if defined( WIN32 ) #if defined( WIN32 ) || defined( UNDER_CE )
# include <windows.h> # include <windows.h>
#else #else
# include <sys/time.h> # include <sys/time.h>
...@@ -95,7 +95,7 @@ mtime_t mdate( void ) ...@@ -95,7 +95,7 @@ mtime_t mdate( void )
#if defined( HAVE_KERNEL_OS_H ) #if defined( HAVE_KERNEL_OS_H )
return( real_time_clock_usecs() ); return( real_time_clock_usecs() );
#elif defined( WIN32 ) #elif defined( WIN32 ) || defined( UNDER_CE )
/* We don't get the real date, just the value of a high precision timer. /* We don't get the real date, just the value of a high precision timer.
* this is because the usual time functions have at best only a milisecond * this is because the usual time functions have at best only a milisecond
* resolution */ * resolution */
...@@ -142,7 +142,7 @@ void mwait( mtime_t date ) ...@@ -142,7 +142,7 @@ void mwait( mtime_t date )
} }
snooze( delay ); snooze( delay );
#elif defined( WIN32 ) #elif defined( WIN32 ) || defined( UNDER_CE )
mtime_t usec_time, delay; mtime_t usec_time, delay;
usec_time = mdate(); usec_time = mdate();
...@@ -218,7 +218,7 @@ void msleep( mtime_t delay ) ...@@ -218,7 +218,7 @@ void msleep( mtime_t delay )
#elif defined( ST_INIT_IN_ST_H ) #elif defined( ST_INIT_IN_ST_H )
st_usleep( delay ); st_usleep( delay );
#elif defined( WIN32 ) #elif defined( WIN32 ) || defined( UNDER_CE )
Sleep( (int) (delay / 1000) ); Sleep( (int) (delay / 1000) );
#elif defined( HAVE_NANOSLEEP ) #elif defined( HAVE_NANOSLEEP )
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* netutils.c: various network functions * netutils.c: various network functions
***************************************************************************** *****************************************************************************
* Copyright (C) 1999-2001 VideoLAN * Copyright (C) 1999-2001 VideoLAN
* $Id: netutils.c,v 1.75 2002/11/10 18:04:24 sam Exp $ * $Id: netutils.c,v 1.76 2002/11/11 14:39:12 sam Exp $
* *
* Authors: Vincent Seguin <seguin@via.ecp.fr> * Authors: Vincent Seguin <seguin@via.ecp.fr>
* Benoit Steiner <benny@via.ecp.fr> * Benoit Steiner <benny@via.ecp.fr>
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
#endif #endif
#if defined( UNDER_CE ) #if defined( UNDER_CE )
/* No real network support */ /* No real network support (FIXME: use winsock1?) */
#elif defined( WIN32 ) #elif defined( WIN32 )
# include <winsock2.h> # include <winsock2.h>
#else #else
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* threads.c : threads implementation for the VideoLAN client * threads.c : threads implementation for the VideoLAN client
***************************************************************************** *****************************************************************************
* Copyright (C) 1999, 2000, 2001, 2002 VideoLAN * Copyright (C) 1999, 2000, 2001, 2002 VideoLAN
* $Id: threads.c,v 1.25 2002/11/10 23:41:53 sam Exp $ * $Id: threads.c,v 1.26 2002/11/11 14:39:12 sam Exp $
* *
* Authors: Jean-Marc Dressler <polux@via.ecp.fr> * Authors: Jean-Marc Dressler <polux@via.ecp.fr>
* Samuel Hocevar <sam@zoy.org> * Samuel Hocevar <sam@zoy.org>
...@@ -39,6 +39,7 @@ static volatile int i_initializations = 0; ...@@ -39,6 +39,7 @@ static volatile int i_initializations = 0;
#if defined( PTH_INIT_IN_PTH_H ) #if defined( PTH_INIT_IN_PTH_H )
#elif defined( ST_INIT_IN_ST_H ) #elif defined( ST_INIT_IN_ST_H )
#elif defined( UNDER_CE )
#elif defined( WIN32 ) #elif defined( WIN32 )
#elif defined( PTHREAD_COND_T_IN_PTHREAD_H ) #elif defined( PTHREAD_COND_T_IN_PTHREAD_H )
static pthread_mutex_t once_mutex = PTHREAD_MUTEX_INITIALIZER; static pthread_mutex_t once_mutex = PTHREAD_MUTEX_INITIALIZER;
...@@ -151,6 +152,8 @@ int __vlc_threads_init( vlc_object_t *p_this ) ...@@ -151,6 +152,8 @@ int __vlc_threads_init( vlc_object_t *p_this )
while( i_status == VLC_THREADS_PENDING ) msleep( THREAD_SLEEP ); while( i_status == VLC_THREADS_PENDING ) msleep( THREAD_SLEEP );
#elif defined( ST_INIT_IN_ST_H ) #elif defined( ST_INIT_IN_ST_H )
while( i_status == VLC_THREADS_PENDING ) msleep( THREAD_SLEEP ); while( i_status == VLC_THREADS_PENDING ) msleep( THREAD_SLEEP );
#elif defined( UNDER_CE )
while( i_status == VLC_THREADS_PENDING ) msleep( THREAD_SLEEP );
#elif defined( WIN32 ) #elif defined( WIN32 )
while( i_status == VLC_THREADS_PENDING ) msleep( THREAD_SLEEP ); while( i_status == VLC_THREADS_PENDING ) msleep( THREAD_SLEEP );
#elif defined( PTHREAD_COND_T_IN_PTHREAD_H ) #elif defined( PTHREAD_COND_T_IN_PTHREAD_H )
...@@ -187,6 +190,9 @@ int __vlc_threads_end( vlc_object_t *p_this ) ...@@ -187,6 +190,9 @@ int __vlc_threads_end( vlc_object_t *p_this )
#elif defined( ST_INIT_IN_ST_H ) #elif defined( ST_INIT_IN_ST_H )
i_initializations--; i_initializations--;
#elif defined( UNDER_CE )
i_initializations--;
#elif defined( WIN32 ) #elif defined( WIN32 )
i_initializations--; i_initializations--;
...@@ -212,7 +218,7 @@ int __vlc_threads_end( vlc_object_t *p_this ) ...@@ -212,7 +218,7 @@ int __vlc_threads_end( vlc_object_t *p_this )
/* Wrapper function for profiling */ /* Wrapper function for profiling */
static void * vlc_thread_wrapper ( void *p_wrapper ); static void * vlc_thread_wrapper ( void *p_wrapper );
# ifdef WIN32 # if defined( WIN32 ) && !defined( UNDER_CE )
# define ITIMER_REAL 1 # define ITIMER_REAL 1
# define ITIMER_PROF 2 # define ITIMER_PROF 2
...@@ -224,7 +230,7 @@ struct itimerval ...@@ -224,7 +230,7 @@ struct itimerval
}; };
int setitimer(int kind, const struct itimerval* itnew, struct itimerval* itold); int setitimer(int kind, const struct itimerval* itnew, struct itimerval* itold);
# endif /* WIN32 */ # endif /* WIN32 && !UNDER_CE */
typedef struct wrapper_t typedef struct wrapper_t
{ {
...@@ -257,12 +263,15 @@ int __vlc_mutex_init( vlc_object_t *p_this, vlc_mutex_t *p_mutex ) ...@@ -257,12 +263,15 @@ int __vlc_mutex_init( vlc_object_t *p_this, vlc_mutex_t *p_mutex )
p_mutex->mutex = st_mutex_new(); p_mutex->mutex = st_mutex_new();
return ( p_mutex->mutex == NULL ) ? errno : 0; return ( p_mutex->mutex == NULL ) ? errno : 0;
#elif defined( UNDER_CE )
InitializeCriticalSection( &p_mutex->csection );
return 0;
#elif defined( WIN32 ) #elif defined( WIN32 )
/* We use mutexes on WinNT/2K/XP because we can use the SignalObjectAndWait /* We use mutexes on WinNT/2K/XP because we can use the SignalObjectAndWait
* function and have a 100% correct vlc_cond_wait() implementation. * function and have a 100% correct vlc_cond_wait() implementation.
* As this function is not available on Win9x, we can use the faster * As this function is not available on Win9x, we can use the faster
* CriticalSections */ * CriticalSections */
# if !defined( UNDER_CE )
if( p_this->p_libvlc->SignalObjectAndWait && if( p_this->p_libvlc->SignalObjectAndWait &&
!p_this->p_libvlc->b_fast_mutex ) !p_this->p_libvlc->b_fast_mutex )
{ {
...@@ -271,7 +280,6 @@ int __vlc_mutex_init( vlc_object_t *p_this, vlc_mutex_t *p_mutex ) ...@@ -271,7 +280,6 @@ int __vlc_mutex_init( vlc_object_t *p_this, vlc_mutex_t *p_mutex )
return ( p_mutex->mutex != NULL ? 0 : 1 ); return ( p_mutex->mutex != NULL ? 0 : 1 );
} }
else else
# endif
{ {
p_mutex->mutex = NULL; p_mutex->mutex = NULL;
InitializeCriticalSection( &p_mutex->csection ); InitializeCriticalSection( &p_mutex->csection );
...@@ -338,6 +346,10 @@ int __vlc_mutex_destroy( char * psz_file, int i_line, vlc_mutex_t *p_mutex ) ...@@ -338,6 +346,10 @@ int __vlc_mutex_destroy( char * psz_file, int i_line, vlc_mutex_t *p_mutex )
#elif defined( ST_INIT_IN_ST_H ) #elif defined( ST_INIT_IN_ST_H )
i_result = st_mutex_destroy( p_mutex->mutex ); i_result = st_mutex_destroy( p_mutex->mutex );
#elif defined( UNDER_CE )
DeleteCriticalSection( &p_mutex->csection );
return 0;
#elif defined( WIN32 ) #elif defined( WIN32 )
if( p_mutex->mutex ) if( p_mutex->mutex )
{ {
...@@ -393,11 +405,21 @@ int __vlc_cond_init( vlc_object_t *p_this, vlc_cond_t *p_condvar ) ...@@ -393,11 +405,21 @@ int __vlc_cond_init( vlc_object_t *p_this, vlc_cond_t *p_condvar )
p_condvar->cond = st_cond_new(); p_condvar->cond = st_cond_new();
return ( p_condvar->cond == NULL ) ? errno : 0; return ( p_condvar->cond == NULL ) ? errno : 0;
#elif defined( UNDER_CE )
/* Initialize counter */
p_condvar->i_waiting_threads = 0;
/* Create an auto-reset event. */
p_condvar->event = CreateEvent( NULL, /* no security */
FALSE, /* auto-reset event */
FALSE, /* start non-signaled */
NULL ); /* unnamed */
return !p_condvar->event;
#elif defined( WIN32 ) #elif defined( WIN32 )
/* Initialize counter */ /* Initialize counter */
p_condvar->i_waiting_threads = 0; p_condvar->i_waiting_threads = 0;
# if !defined( UNDER_CE )
/* Misc init */ /* Misc init */
p_condvar->i_win9x_cv = p_this->p_libvlc->i_win9x_cv; p_condvar->i_win9x_cv = p_this->p_libvlc->i_win9x_cv;
p_condvar->SignalObjectAndWait = p_this->p_libvlc->SignalObjectAndWait; p_condvar->SignalObjectAndWait = p_this->p_libvlc->SignalObjectAndWait;
...@@ -405,7 +427,6 @@ int __vlc_cond_init( vlc_object_t *p_this, vlc_cond_t *p_condvar ) ...@@ -405,7 +427,6 @@ int __vlc_cond_init( vlc_object_t *p_this, vlc_cond_t *p_condvar )
if( (p_condvar->SignalObjectAndWait && !p_this->p_libvlc->b_fast_mutex) if( (p_condvar->SignalObjectAndWait && !p_this->p_libvlc->b_fast_mutex)
|| p_condvar->i_win9x_cv == 0 ) || p_condvar->i_win9x_cv == 0 )
{ {
# endif
/* Create an auto-reset event. */ /* Create an auto-reset event. */
p_condvar->event = CreateEvent( NULL, /* no security */ p_condvar->event = CreateEvent( NULL, /* no security */
FALSE, /* auto-reset event */ FALSE, /* auto-reset event */
...@@ -414,7 +435,6 @@ int __vlc_cond_init( vlc_object_t *p_this, vlc_cond_t *p_condvar ) ...@@ -414,7 +435,6 @@ int __vlc_cond_init( vlc_object_t *p_this, vlc_cond_t *p_condvar )
p_condvar->semaphore = NULL; p_condvar->semaphore = NULL;
return !p_condvar->event; return !p_condvar->event;
# if !defined( UNDER_CE )
} }
else else
{ {
...@@ -434,7 +454,6 @@ int __vlc_cond_init( vlc_object_t *p_this, vlc_cond_t *p_condvar ) ...@@ -434,7 +454,6 @@ int __vlc_cond_init( vlc_object_t *p_this, vlc_cond_t *p_condvar )
return !p_condvar->semaphore || !p_condvar->event; return !p_condvar->semaphore || !p_condvar->event;
} }
# endif
#elif defined( PTHREAD_COND_T_IN_PTHREAD_H ) #elif defined( PTHREAD_COND_T_IN_PTHREAD_H )
return pthread_cond_init( &p_condvar->cond, NULL ); return pthread_cond_init( &p_condvar->cond, NULL );
...@@ -481,6 +500,9 @@ int __vlc_cond_destroy( char * psz_file, int i_line, vlc_cond_t *p_condvar ) ...@@ -481,6 +500,9 @@ int __vlc_cond_destroy( char * psz_file, int i_line, vlc_cond_t *p_condvar )
#elif defined( ST_INIT_IN_ST_H ) #elif defined( ST_INIT_IN_ST_H )
i_result = st_cond_destroy( p_condvar->cond ); i_result = st_cond_destroy( p_condvar->cond );
#elif defined( UNDER_CE )
i_result = !CloseHandle( p_condvar->event );
#elif defined( WIN32 ) #elif defined( WIN32 )
if( !p_condvar->semaphore ) if( !p_condvar->semaphore )
i_result = !CloseHandle( p_condvar->event ); i_result = !CloseHandle( p_condvar->event );
...@@ -552,7 +574,7 @@ int __vlc_thread_create( vlc_object_t *p_this, char * psz_file, int i_line, ...@@ -552,7 +574,7 @@ int __vlc_thread_create( vlc_object_t *p_this, char * psz_file, int i_line,
p_this->thread_id = st_thread_create( func, (void *)p_this, 1, 0 ); p_this->thread_id = st_thread_create( func, (void *)p_this, 1, 0 );
i_ret = 0; i_ret = 0;
#elif defined( WIN32 ) #elif defined( WIN32 ) || defined( UNDER_CE )
{ {
unsigned threadID; unsigned threadID;
/* When using the MSVCRT C library you have to use the _beginthreadex /* When using the MSVCRT C library you have to use the _beginthreadex
...@@ -671,6 +693,9 @@ void __vlc_thread_join( vlc_object_t *p_this, char * psz_file, int i_line ) ...@@ -671,6 +693,9 @@ void __vlc_thread_join( vlc_object_t *p_this, char * psz_file, int i_line )
#elif defined( ST_INIT_IN_ST_H ) #elif defined( ST_INIT_IN_ST_H )
i_ret = st_thread_join( p_this->thread_id, NULL ); i_ret = st_thread_join( p_this->thread_id, NULL );
#elif defined( UNDER_CE )
WaitForSingleObject( p_this->thread_id, INFINITE );
#elif defined( WIN32 ) #elif defined( WIN32 )
WaitForSingleObject( p_this->thread_id, INFINITE ); WaitForSingleObject( p_this->thread_id, INFINITE );
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* stream_output.c : stream output module * stream_output.c : stream output module
***************************************************************************** *****************************************************************************
* Copyright (C) 2002 VideoLAN * Copyright (C) 2002 VideoLAN
* $Id: stream_output.c,v 1.4 2002/11/10 18:04:24 sam Exp $ * $Id: stream_output.c,v 1.5 2002/11/11 14:39:12 sam Exp $
* *
* Authors: Christophe Massiot <massiot@via.ecp.fr> * Authors: Christophe Massiot <massiot@via.ecp.fr>
* *
...@@ -77,7 +77,7 @@ static int InitInstance( sout_instance_t * p_sout ) ...@@ -77,7 +77,7 @@ static int InitInstance( sout_instance_t * p_sout )
{ {
psz_parser++; psz_parser++;
} }
#ifdef WIN32 #if defined( WIN32 ) || defined( UNDER_CE )
if( psz_parser - p_sout->psz_dest == 1 ) if( psz_parser - p_sout->psz_dest == 1 )
{ {
msg_Warn( p_sout, "drive letter %c: found in source string", msg_Warn( p_sout, "drive letter %c: found in source string",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment