Commit Graph

35 Commits

Author SHA1 Message Date
reimar 5c51b13785 free memory on error in http_add_basic_authentication
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18095 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-04-14 13:37:38 +00:00
diego eebf08b978 Convert all if(verbose>X) to mp_msg_test calls.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17933 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-03-24 08:12:03 +00:00
reimar dddd5404a5 Fix base64 encoding for basic auth according to RFC.
Patch by Jeff D'Angelo (jcd+mplayer at psu edu).


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17779 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-03-08 15:14:08 +00:00
rathann e7db4ccf1a Patch by Stefan Huehner / stefan % huehner ! org \
patch replaces '()' for the correct '(void)' in function
declarations/prototypes which have no parameters. The '()' syntax tell
thats there is a variable list of arguments, so that the compiler cannot
check this. The extra CFLAG '-Wstrict-declarations' shows those cases.

Comments about a similar patch applied to ffmpeg:

That in C++ these mean the same, but in ANSI C the semantics are
different; function() is an (obsolete) K&R C style forward declaration,
it basically means that the function can have any number and any types
of parameters, effectively completely preventing the compiler from doing
any sort of type checking. -- Erik Slagter

Defining functions with unspecified arguments is allowed but bad.
With arguments unspecified the compiler can't report an error/warning
if the function is called with incorrect arguments. -- Måns Rullgård


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17567 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-02-09 14:08:03 +00:00
rtognimp 59235ce33e Add another content-type for aac audio in shoutcast streams
Fixes http://www.digitallyimported.com/aacplus/goapsy.pls


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16949 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-11-08 22:07:53 +00:00
reimar 949b479e3c fix typos: aslo->also, falback->fallback (they were just too annoying *g*)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16933 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-11-06 16:10:39 +00:00
rtognimp 1cfe5263b1 Use correct demuxer type for aac in shoutcast streams
(content-type="audio/aacp").
Fixes http://160.79.128.40:7040 (it does not work with internal faad)


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16918 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-11-05 15:32:50 +00:00
reimar ce1fc3dcb4 another url_free that shouldn't be commented out.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16615 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-09-28 15:43:24 +00:00
reimar e036d0cf35 memleak fixes when invalid http url specified.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16418 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-09-06 21:00:57 +00:00
reimar e23ff6c88c Some ICY servers (e.g. http://broadcast.spnet.net:8000/darikhigh) do not set
the protocol correctly, so look for icy-metaint in the response instead.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16079 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-07-24 12:22:30 +00:00
reimar 51a7a44449 Multiple unsv/scast bug fixes.
* use recv instead of read for MinGW compatibility
* detect EOF more reliably
* use ultravox only for unsv:// instead of trying autodetection


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16071 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-07-23 15:29:51 +00:00
reimar 53b7a40591 Forgotten doxygen comments
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16033 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-07-20 17:14:45 +00:00
reimar ee105bbcb3 Ultravox improvements according to specs (didn't know they existed *g*)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16032 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-07-20 17:12:33 +00:00
reimar c0a4d94468 SHOUTcast and ultravox support
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16014 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-07-19 12:07:04 +00:00
reimar a1d7876900 Remove code that is already done by fixup_network_stream_cache.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15733 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-06-16 07:42:01 +00:00
reimar 5ee6c9882d Change header order to avoid compile error because of STREAM_SEEK
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15615 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-06-02 18:57:58 +00:00
nicodvb 83b3c822be ported all network streams to the new API
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15586 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-05-29 12:54:00 +00:00
reimar bcc2517604 free http field_name to fix memleak
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14461 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-01-11 17:49:59 +00:00
rtognimp 0fec6dd1e3 Fix url escaping and avoid double escape
Patch by adland, approved by Bertrand Baudet


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12392 b3059339-0415-0410-9bf9-f77b7e298cf2
2004-05-01 23:35:25 +00:00
michael ec18d784f3 remote exploitable heap overflow fix by ("blexim" <blexim at hush dot com>)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12084 b3059339-0415-0410-9bf9-f77b7e298cf2
2004-03-30 10:58:41 +00:00
bertrand 76b6eea434 Removed hard coded value for the length of the header separator.
Used the value previous detected.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8180 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-11-13 09:02:55 +00:00
bertrand e620b2a53c Check if realloc failed on http_hdr->buffer instead of ptr in http_response_append,
and got rid of ptr which wasn't used anymore.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7305 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-09-07 08:15:57 +00:00
arpi 9954e006ae - simpler http_response_append (uses realloc())
- http_response_append addes extra 0 byte to close teh string
  (some functions like http_is_header_entire() use standard string
  functions like strstr which requires trailing zero)
- check for NULL string in http_is_header_entire()


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7294 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-09-06 00:03:16 +00:00
bertrand f83fbf33c3 Added base64 encoder
Added http basic authentication


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6515 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-06-23 09:16:08 +00:00
bertrand 91cdc3a596 Removed unecessary malloc and memcpy.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6466 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-06-20 07:58:52 +00:00
albeu f76db05d53 Convert printf to mp_msg in the network layer
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5916 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-04-30 16:58:54 +00:00
bertrand 646c35a06e Fixed the http response parser when the http header only has the HTTP
answer and no field.
Fixed some compiler warnings.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4817 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-02-23 07:31:45 +00:00
bertrand fcc41f6043 Modified the output of the http_debug function.
Fixed a bug in the reading of the "reason answer"


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4312 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-01-23 08:46:22 +00:00
arpi fc8277500b 10l...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3786 b3059339-0415-0410-9bf9-f77b7e298cf2
2001-12-27 02:02:03 +00:00
arpi 9f9882d01b warning fix == cleanup
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3785 b3059339-0415-0410-9bf9-f77b7e298cf2
2001-12-27 01:53:25 +00:00
bertrand 8b26a9a6c9 Handle broken server that doesn't send CRLF but jusr LF.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3515 b3059339-0415-0410-9bf9-f77b7e298cf2
2001-12-16 07:40:52 +00:00
bertrand ea70f366b1 Made the HTTP request escaped the url.
This now allow for example the spaces in the URL.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3498 b3059339-0415-0410-9bf9-f77b7e298cf2
2001-12-14 23:50:57 +00:00
bertrand 9ea246653a Removed the field number limitation.
We can add as much field as we want.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3040 b3059339-0415-0410-9bf9-f77b7e298cf2
2001-11-20 22:14:16 +00:00
bertrand 1e7d31cc88 Added ASF http server streaming (Not mms streaming).
Fixed one bug in the ASF mms streaming.
Fixed a typo in http.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2490 b3059339-0415-0410-9bf9-f77b7e298cf2
2001-10-26 18:26:06 +00:00
arpi 881e5d0783 libdemuxer...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2311 b3059339-0415-0410-9bf9-f77b7e298cf2
2001-10-20 18:49:08 +00:00