[MPlayer-cvslog] r26001 - trunk/stream/http.c

reimar subversion at mplayerhq.hu
Fri Feb 15 21:23:59 CET 2008


Author: reimar
Date: Fri Feb 15 21:23:59 2008
New Revision: 26001

Log:
Remove useless code


Modified:
   trunk/stream/http.c

Modified: trunk/stream/http.c
==============================================================================
--- trunk/stream/http.c	(original)
+++ trunk/stream/http.c	Fri Feb 15 21:23:59 2008
@@ -760,20 +760,20 @@ static int http_streaming_start(stream_t
 		     http_get_field(http_hdr, "Icy-MetaInt") ) {
 			switch( http_hdr->status_code ) {
 				case 200: { // OK
-					char *field_data = NULL;
+					char *field_data;
 					// note: I skip icy-notice1 and 2, as they contain html <BR>
 					// and are IMHO useless info ::atmos
 					if( (field_data = http_get_field(http_hdr, "icy-name")) != NULL )
-						mp_msg(MSGT_NETWORK,MSGL_INFO,"Name   : %s\n", field_data); field_data = NULL;
+						mp_msg(MSGT_NETWORK,MSGL_INFO,"Name   : %s\n", field_data);
 					if( (field_data = http_get_field(http_hdr, "icy-genre")) != NULL )
-						mp_msg(MSGT_NETWORK,MSGL_INFO,"Genre  : %s\n", field_data); field_data = NULL;
+						mp_msg(MSGT_NETWORK,MSGL_INFO,"Genre  : %s\n", field_data);
 					if( (field_data = http_get_field(http_hdr, "icy-url")) != NULL )
-						mp_msg(MSGT_NETWORK,MSGL_INFO,"Website: %s\n", field_data); field_data = NULL;
+						mp_msg(MSGT_NETWORK,MSGL_INFO,"Website: %s\n", field_data);
 					// XXX: does this really mean public server? ::atmos
 					if( (field_data = http_get_field(http_hdr, "icy-pub")) != NULL )
-						mp_msg(MSGT_NETWORK,MSGL_INFO,"Public : %s\n", atoi(field_data)?"yes":"no"); field_data = NULL;
+						mp_msg(MSGT_NETWORK,MSGL_INFO,"Public : %s\n", atoi(field_data)?"yes":"no");
 					if( (field_data = http_get_field(http_hdr, "icy-br")) != NULL )
-						mp_msg(MSGT_NETWORK,MSGL_INFO,"Bitrate: %skbit/s\n", field_data); field_data = NULL;
+						mp_msg(MSGT_NETWORK,MSGL_INFO,"Bitrate: %skbit/s\n", field_data);
 					
 					// If content-type == video/nsv we most likely have a winamp video stream 
 					// otherwise it should be mp3. if there are more types consider adding mime type 



More information about the MPlayer-cvslog mailing list