# HG changeset patch # User voroshil # Date 1181282931 0 # Node ID f6b20f40a8546f615316cc7d548b4ea90b5a5100 # Parent 4c1ce861ed82e5e8ae19c017f05218f0902d0230 Fix compiler warnings. Remove unused tv_param_on variable. diff -r 4c1ce861ed82 -r f6b20f40a854 stream/stream_radio.c --- a/stream/stream_radio.c Fri Jun 08 02:57:45 2007 +0000 +++ b/stream/stream_radio.c Fri Jun 08 06:08:51 2007 +0000 @@ -1071,10 +1071,11 @@ * \return number of bytes, written into buffer */ static int fill_buffer_s(struct stream_st *s, char* buffer, int max_len){ - radio_priv_t* priv=(radio_priv_t*)s->priv; int len=max_len; #ifdef USE_RADIO_CAPTURE + radio_priv_t* priv=(radio_priv_t*)s->priv; + if (priv->do_capture){ len=grab_audio_frame(priv, buffer,max_len); } diff -r 4c1ce861ed82 -r f6b20f40a854 stream/tv.c --- a/stream/tv.c Fri Jun 08 02:57:45 2007 +0000 +++ b/stream/tv.c Fri Jun 08 06:08:51 2007 +0000 @@ -19,7 +19,6 @@ #include "config.h" -int tv_param_on = 0; #include "mp_msg.h" #include "help_mp.h" @@ -668,7 +667,6 @@ tvi_handle_t *tv_begin(void) { int i; - tvi_info_t* info; tvi_handle_t* h; if(!strcmp(tv_param_driver,"help")){ mp_msg(MSGT_TV,MSGL_INFO,MSGTR_TV_AvailableDrivers); diff -r 4c1ce861ed82 -r f6b20f40a854 stream/tv.h --- a/stream/tv.h Fri Jun 08 02:57:45 2007 +0000 +++ b/stream/tv.h Fri Jun 08 06:08:51 2007 +0000 @@ -1,8 +1,6 @@ #ifndef TV_H #define TV_H -extern int tv_param_on; - #ifdef USE_TV //#include "libao2/afmt.h" //#include "libmpcodecs/img_format.h"