# HG changeset patch # User rathann # Date 1170719168 0 # Node ID 84f95595f31feea130196998df85dbf605ddfef7 # Parent ed81b9614148dcfa3d863ff7e97244ca81e10ecb Fix a few gcc warnings, approved by Diego and Reimar. diff -r ed81b9614148 -r 84f95595f31f libao2/ao_polyp.c --- a/libao2/ao_polyp.c Mon Feb 05 23:25:50 2007 +0000 +++ b/libao2/ao_polyp.c Mon Feb 05 23:46:08 2007 +0000 @@ -246,8 +246,8 @@ /** Return the current latency in seconds */ static float get_delay(void) { + pa_usec_t latency; assert(stream && context && pa_stream_get_state(stream) == PA_STREAM_READY); - pa_usec_t latency; /* latency = 0; */ /* wait_for_operation(pa_stream_get_latency(stream, latency_func, NULL)); */ diff -r ed81b9614148 -r 84f95595f31f libmpdemux/demuxer.c --- a/libmpdemux/demuxer.c Mon Feb 05 23:25:50 2007 +0000 +++ b/libmpdemux/demuxer.c Mon Feb 05 23:46:08 2007 +0000 @@ -22,6 +22,7 @@ #include "libaf/af_format.h" +extern void resync_video_stream(sh_video_t *sh_video); extern void resync_audio_stream(sh_audio_t *sh_audio); // Demuxer list diff -r ed81b9614148 -r 84f95595f31f libmpdemux/muxer_mpeg.c --- a/libmpdemux/muxer_mpeg.c Mon Feb 05 23:25:50 2007 +0000 +++ b/libmpdemux/muxer_mpeg.c Mon Feb 05 23:46:08 2007 +0000 @@ -872,7 +872,7 @@ } } -static int update_demux_bufsize(muxer_headers_t *spriv, uint64_t dts, int framelen, int type) +static void update_demux_bufsize(muxer_headers_t *spriv, uint64_t dts, int framelen, int type) { int dim = (spriv->track_len+16)*sizeof(buffer_track_t); @@ -882,7 +882,7 @@ if(!tmp) { mp_msg(MSGT_MUXER, MSGL_ERR, "\r\nERROR, couldn't realloc %d bytes for tracking buffer\r\n", dim); - return 0; + return; } spriv->buffer_track = tmp; memset(&(spriv->buffer_track[spriv->track_pos+1]), 0, 16*sizeof(buffer_track_t)); diff -r ed81b9614148 -r 84f95595f31f libvo/mga_common.c --- a/libvo/mga_common.c Mon Feb 05 23:25:50 2007 +0000 +++ b/libvo/mga_common.c Mon Feb 05 23:46:08 2007 +0000 @@ -2,6 +2,7 @@ #include "fastmemcpy.h" #include "cpudetect.h" #include "libswscale/swscale.h" +#include "libswscale/rgb2rgb.h" #include "libmpcodecs/vf_scale.h" #include "mp_msg.h" #include "help_mp.h" diff -r ed81b9614148 -r 84f95595f31f stream/cache2.c --- a/stream/cache2.c Mon Feb 05 23:25:50 2007 +0000 +++ b/stream/cache2.c Mon Feb 05 23:46:08 2007 +0000 @@ -28,12 +28,11 @@ #include "help_mp.h" #include "stream.h" +#include "input/input.h" int stream_fill_buffer(stream_t *s); int stream_seek_long(stream_t *s,off_t pos); -extern int mp_input_check_interrupt(int time); - typedef struct { // constats: unsigned char *buffer; // base pointer of the alllocated buffer memory diff -r ed81b9614148 -r 84f95595f31f stream/network.c --- a/stream/network.c Mon Feb 05 23:25:50 2007 +0000 +++ b/stream/network.c Mon Feb 05 23:46:08 2007 +0000 @@ -40,8 +40,6 @@ extern int stream_cache_size; -extern int mp_input_check_interrupt(int time); - /* Variables for the command line option -user, -passwd, -bandwidth, -user-agent and -nocookies */ diff -r ed81b9614148 -r 84f95595f31f stream/tcp.c --- a/stream/tcp.c Mon Feb 05 23:25:50 2007 +0000 +++ b/stream/tcp.c Mon Feb 05 23:46:08 2007 +0000 @@ -19,6 +19,7 @@ #include "mp_msg.h" #include "help_mp.h" +#include "input/input.h" #ifndef HAVE_WINSOCK2 #include