Mercurial > mplayer.hg
diff stream/http.c @ 20784:720206eef78b
Support URL redirections that do not specify full URL.
Fixes crash with mplayer -playlist http://www.radioseven.se/radioseven.pls.
| author | reimar |
|---|---|
| date | Wed, 08 Nov 2006 22:42:31 +0000 |
| parents | b6eed21e0535 |
| children | 147c1c305f21 |
line wrap: on
line diff
--- a/stream/http.c Wed Nov 08 22:21:50 2006 +0000 +++ b/stream/http.c Wed Nov 08 22:42:31 2006 +0000 @@ -835,8 +835,7 @@ next_url = http_get_field( http_hdr, "Location" ); if( next_url!=NULL ) { closesocket( fd ); - url_free( url ); - stream->streaming_ctrl->url = url = url_new( next_url ); + stream->streaming_ctrl->url = url_redirect( &url, next_url ); http_free( http_hdr ); redirect = 1; }
