summaryrefslogtreecommitdiffstats
path: root/stream/http.c
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-02-15 20:23:59 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-02-15 20:23:59 +0000
commit48614bcc10a47350cd31102e87074cfcbb672d09 (patch)
tree13c4e22f86ef7def9aeed3ea62e5eadafa1214f0 /stream/http.c
parentde2ae95defef080425e3578aaffba6c94abbb026 (diff)
downloadmpv-48614bcc10a47350cd31102e87074cfcbb672d09.tar.bz2
mpv-48614bcc10a47350cd31102e87074cfcbb672d09.tar.xz
Remove useless code
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26001 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'stream/http.c')
-rw-r--r--stream/http.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/stream/http.c b/stream/http.c
index 4e02d63d73..9037d22299 100644
--- a/stream/http.c
+++ b/stream/http.c
@@ -760,20 +760,20 @@ static int http_streaming_start(stream_t *stream, int* file_format) {
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