changeset 23485:f6b20f40a854

Fix compiler warnings. Remove unused tv_param_on variable.
author voroshil
date Fri, 08 Jun 2007 06:08:51 +0000
parents 4c1ce861ed82
children 056c2968b148
files stream/stream_radio.c stream/tv.c stream/tv.h
diffstat 3 files changed, 2 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- 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);
     }
--- 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);
--- 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"