Commit ce31d545 authored by Jon Lech Johansen's avatar Jon Lech Johansen

* ALL: Fixed some compiler warnings.

parent 4659a85f
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* mms.c: MMS access plug-in * mms.c: MMS access plug-in
***************************************************************************** *****************************************************************************
* Copyright (C) 2001, 2002 VideoLAN * Copyright (C) 2001, 2002 VideoLAN
* $Id: mms.c,v 1.9 2002/11/25 19:12:34 fenrir Exp $ * $Id: mms.c,v 1.10 2002/12/02 21:13:25 jlj Exp $
* *
* Authors: Laurent Aimar <fenrir@via.ecp.fr> * Authors: Laurent Aimar <fenrir@via.ecp.fr>
* *
...@@ -754,7 +754,7 @@ static int MMSOpen( input_thread_t *p_input, ...@@ -754,7 +754,7 @@ static int MMSOpen( input_thread_t *p_input,
socklen_t i_namelen = sizeof( struct sockaddr_in ); socklen_t i_namelen = sizeof( struct sockaddr_in );
if( getsockname( p_access->socket_tcp.i_handle, if( getsockname( p_access->socket_tcp.i_handle,
(struct sockaddr_in*)&name, &i_namelen ) < 0 ) (struct sockaddr*)&name, &i_namelen ) < 0 )
{ {
msg_Err( p_input, "for udp you have to provide bind address (mms://<server_addr>@<bind_addr/<path> (FIXME)" ); msg_Err( p_input, "for udp you have to provide bind address (mms://<server_addr>@<bind_addr/<path> (FIXME)" );
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* audio.c: audio decoder using ffmpeg library * audio.c: audio decoder using ffmpeg library
***************************************************************************** *****************************************************************************
* Copyright (C) 1999-2001 VideoLAN * Copyright (C) 1999-2001 VideoLAN
* $Id: audio.c,v 1.5 2002/11/28 16:32:29 fenrir Exp $ * $Id: audio.c,v 1.6 2002/12/02 21:13:25 jlj Exp $
* *
* Authors: Laurent Aimar <fenrir@via.ecp.fr> * Authors: Laurent Aimar <fenrir@via.ecp.fr>
* *
...@@ -43,6 +43,7 @@ ...@@ -43,6 +43,7 @@
# include <sys/times.h> # include <sys/times.h>
#endif #endif
#include "codecs.h" #include "codecs.h"
#include "aout_internal.h"
#include "avcodec.h" /* ffmpeg */ #include "avcodec.h" /* ffmpeg */
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* spudec.c : SPU decoder thread * spudec.c : SPU decoder thread
***************************************************************************** *****************************************************************************
* Copyright (C) 2000-2001 VideoLAN * Copyright (C) 2000-2001 VideoLAN
* $Id: spudec.c,v 1.8 2002/11/06 21:48:24 gbazin Exp $ * $Id: spudec.c,v 1.9 2002/12/02 21:13:25 jlj Exp $
* *
* Authors: Samuel Hocevar <sam@zoy.org> * Authors: Samuel Hocevar <sam@zoy.org>
* *
...@@ -126,7 +126,7 @@ static int RunDecoder( decoder_fifo_t * p_fifo ) ...@@ -126,7 +126,7 @@ static int RunDecoder( decoder_fifo_t * p_fifo )
} }
else else
{ {
p_font = subtitler_LoadFont( p_spudec->p_vout, psz_font ); p_font = E_(subtitler_LoadFont)( p_spudec->p_vout, psz_font );
if ( p_font == NULL ) if ( p_font == NULL )
{ {
msg_Err( p_fifo, "unable to load font: %s", psz_font ); msg_Err( p_fifo, "unable to load font: %s", psz_font );
...@@ -140,7 +140,7 @@ static int RunDecoder( decoder_fifo_t * p_fifo ) ...@@ -140,7 +140,7 @@ static int RunDecoder( decoder_fifo_t * p_fifo )
E_(ParseText)( p_spudec, p_font ); E_(ParseText)( p_spudec, p_font );
} }
if( p_font ) subtitler_UnloadFont( p_spudec->p_vout, p_font ); if( p_font ) E_(subtitler_UnloadFont)( p_spudec->p_vout, p_font );
} }
else else
......
...@@ -80,7 +80,7 @@ static void DestroySPU ( subpicture_t * ); ...@@ -80,7 +80,7 @@ static void DestroySPU ( subpicture_t * );
* to end: * to end:
* 1 byte : 0xff * 1 byte : 0xff
*****************************************************************************/ *****************************************************************************/
subtitler_font_t* subtitler_LoadFont( vout_thread_t * p_vout, subtitler_font_t* E_(subtitler_LoadFont)( vout_thread_t * p_vout,
const char * psz_name ) const char * psz_name )
{ {
subtitler_font_t * p_font; subtitler_font_t * p_font;
...@@ -154,7 +154,7 @@ subtitler_font_t* subtitler_LoadFont( vout_thread_t * p_vout, ...@@ -154,7 +154,7 @@ subtitler_font_t* subtitler_LoadFont( vout_thread_t * p_vout,
{ {
msg_Err( p_vout, "unexpected end of font file '%s'", psz_name ); msg_Err( p_vout, "unexpected end of font file '%s'", psz_name );
close( i_file ); close( i_file );
subtitler_UnloadFont( p_vout, p_font ); E_(subtitler_UnloadFont)( p_vout, p_font );
return( NULL ); return( NULL );
} }
i_char = pi_buffer[0]; i_char = pi_buffer[0];
...@@ -170,7 +170,7 @@ subtitler_font_t* subtitler_LoadFont( vout_thread_t * p_vout, ...@@ -170,7 +170,7 @@ subtitler_font_t* subtitler_LoadFont( vout_thread_t * p_vout,
{ {
msg_Err( p_vout, "unexpected end of font file '%s'", psz_name ); msg_Err( p_vout, "unexpected end of font file '%s'", psz_name );
close( i_file ); close( i_file );
subtitler_UnloadFont( p_vout, p_font ); E_(subtitler_UnloadFont)( p_vout, p_font );
return( NULL ); return( NULL );
} }
p_font->i_width[ i_char ] = pi_buffer[0]; p_font->i_width[ i_char ] = pi_buffer[0];
...@@ -185,7 +185,7 @@ subtitler_font_t* subtitler_LoadFont( vout_thread_t * p_vout, ...@@ -185,7 +185,7 @@ subtitler_font_t* subtitler_LoadFont( vout_thread_t * p_vout,
{ {
msg_Err( p_vout, "out of memory" ); msg_Err( p_vout, "out of memory" );
close( i_file ); close( i_file );
subtitler_UnloadFont( p_vout, p_font ); E_(subtitler_UnloadFont)( p_vout, p_font );
return NULL; return NULL;
} }
for( i_line=0; i_line < p_font->i_height; i_line ++ ) for( i_line=0; i_line < p_font->i_height; i_line ++ )
...@@ -200,7 +200,7 @@ subtitler_font_t* subtitler_LoadFont( vout_thread_t * p_vout, ...@@ -200,7 +200,7 @@ subtitler_font_t* subtitler_LoadFont( vout_thread_t * p_vout,
if( read( i_file, pi_buffer, 1 ) != 1) if( read( i_file, pi_buffer, 1 ) != 1)
{ {
msg_Err( p_vout, "unexpected end of font file '%s'", psz_name); msg_Err( p_vout, "unexpected end of font file '%s'", psz_name);
subtitler_UnloadFont( p_vout, p_font ); E_(subtitler_UnloadFont)( p_vout, p_font );
close( i_file ); close( i_file );
return( NULL ); return( NULL );
} }
...@@ -213,7 +213,7 @@ subtitler_font_t* subtitler_LoadFont( vout_thread_t * p_vout, ...@@ -213,7 +213,7 @@ subtitler_font_t* subtitler_LoadFont( vout_thread_t * p_vout,
if( read( i_file, pi_buffer, i_length*2 ) != i_length*2) if( read( i_file, pi_buffer, i_length*2 ) != i_length*2)
{ {
msg_Err( p_vout, "unexpected end of font file '%s'", psz_name); msg_Err( p_vout, "unexpected end of font file '%s'", psz_name);
subtitler_UnloadFont( p_vout, p_font ); E_(subtitler_UnloadFont)( p_vout, p_font );
close( i_file ); close( i_file );
return( NULL ); return( NULL );
} }
...@@ -223,7 +223,7 @@ subtitler_font_t* subtitler_LoadFont( vout_thread_t * p_vout, ...@@ -223,7 +223,7 @@ subtitler_font_t* subtitler_LoadFont( vout_thread_t * p_vout,
{ {
msg_Err( p_vout, "out of memory" ); msg_Err( p_vout, "out of memory" );
close( i_file ); close( i_file );
subtitler_UnloadFont( p_vout, p_font ); E_(subtitler_UnloadFont)( p_vout, p_font );
return NULL; return NULL;
} }
for( i = 0; i < i_length; i++ ) for( i = 0; i < i_length; i++ )
...@@ -248,7 +248,8 @@ subtitler_font_t* subtitler_LoadFont( vout_thread_t * p_vout, ...@@ -248,7 +248,8 @@ subtitler_font_t* subtitler_LoadFont( vout_thread_t * p_vout,
/***************************************************************************** /*****************************************************************************
* subtitler_UnloadFont: unload a run-length encoded font file from memory * subtitler_UnloadFont: unload a run-length encoded font file from memory
*****************************************************************************/ *****************************************************************************/
void subtitler_UnloadFont( vout_thread_t * p_vout, subtitler_font_t * p_font ) void E_(subtitler_UnloadFont)( vout_thread_t * p_vout,
subtitler_font_t * p_font )
{ {
int i_char; int i_char;
int i_line; int i_line;
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* rc.c : remote control stdin/stdout plugin for vlc * rc.c : remote control stdin/stdout plugin for vlc
***************************************************************************** *****************************************************************************
* Copyright (C) 2001 VideoLAN * Copyright (C) 2001 VideoLAN
* $Id: rc.c,v 1.12 2002/11/23 20:37:10 sam Exp $ * $Id: rc.c,v 1.13 2002/12/02 21:13:25 jlj Exp $
* *
* Authors: Peter Surda <shurdeek@panorama.sth.ac.at> * Authors: Peter Surda <shurdeek@panorama.sth.ac.at>
* *
...@@ -34,6 +34,7 @@ ...@@ -34,6 +34,7 @@
#include <vlc/vlc.h> #include <vlc/vlc.h>
#include <vlc/intf.h> #include <vlc/intf.h>
#include <vlc/aout.h>
#include <vlc/vout.h> #include <vlc/vout.h>
#ifdef HAVE_UNISTD_H #ifdef HAVE_UNISTD_H
...@@ -49,6 +50,8 @@ ...@@ -49,6 +50,8 @@
#include <winsock2.h> /* select() */ #include <winsock2.h> /* select() */
#endif #endif
#include "error.h"
#define MAX_LINE_LENGTH 256 #define MAX_LINE_LENGTH 256
/***************************************************************************** /*****************************************************************************
......
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