Commit Graph

40 Commits

Author SHA1 Message Date
reimar d17ac2d7bf missing free in case sdpplin_parse_stream returns invalid stream.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18096 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-04-14 14:10:04 +00:00
rtognimp cb05addbaf Do not use ptr when it's NULL. CID 89
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17895 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-03-19 16:02:03 +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 c2b69a1427 Fix CSeq answer for keepalive OPTIONS requests during playback
The CSeq was mispelled as Cseq, so MPlayer alwys answered with CSeq=1

Fixed with help from xiojason on #mplayer


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17563 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-02-08 23:44:44 +00:00
diego 15f584a958 OS X compilation fix: Include inttypes.h so that uint32_t is not undefined.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17352 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-01-08 22:57:59 +00:00
rtognimp b59db28355 This patch makes real rtsp tell the server to deliver data at specified
bandwidth, if bandwidth cmdline option is given. Also, if that's given,
it uses it for sdp stream selection. If not given, the behavior is the
same as before.

It's used to implement something like turboplay in realplayer.

Patch by Tomas Janousek >>> tomi (At) nomi (.) cz <<<


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17333 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-01-06 14:39:10 +00:00
rathann 355bc2f7c1 fix
pnm.c:228: warning: implicit declaration of function 'usec_sleep'
realrtsp/rtsp.c:184: warning: implicit declaration of function 'usec_sleep'
ad_acm.c:149: warning: implicit declaration of function 'usec_sleep'


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17093 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-12-05 01:27:32 +00:00
rtognimp 7d81d69dd5 Ignore OPTIONS rtsp command during playback. Fixes
rtsp://mms.sonix.de/universal/rock/apocalyptica_lifeburns_300.rm?start=0
(playback stopped after 82 sec)
Patch by adland


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17033 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-11-22 19:24:09 +00:00
faust3 ac2c5730ce replace sleep with usec_sleep, required for recent mingw versions, patch by Robert Swain <robert.swain at gmail.com>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16373 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-09-03 10:58:52 +00:00
rtognimp 9f60836046 Revert fix v1.3, it breaks streams with cook audio (ex.
rtsp://mm4.rai.it/raitre/blob/ultimo/blob.rm)
Applied a different fix for the first buf[k] (ensure buf size is k+4)
The second buf[k] is safe, buf is at least 32 when the code is called


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15933 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-07-06 21:37:38 +00:00
rtognimp a27f05a6ea Do some sanity checks before writing stream information
Patch by Sergio Gelato >Sergio dot Gelato at astro dot su dot se<
and some additions by me


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15931 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-07-06 19:20:16 +00:00
reimar b3946c3bb1 fix illegal memory accesses
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15798 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-06-22 11:58:56 +00:00
nicodvb 68230a7f76 printf converted to mp_msg; made static many unnecessarily global symbols
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15627 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-06-03 15:33:26 +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
rtognimp 20a3f6169c Fix potential buffer overflow if server answers with too many lines
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15173 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-04-15 23:30:44 +00:00
reimar 8f8b53d953 fix security vulnerability reported by iDEFENSE
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14160 b3059339-0415-0410-9bf9-f77b7e298cf2
2004-12-15 18:16:24 +00:00
rtognimp a328d9ff57 Fix streaming if not mlti_data (for some non-multirate streams)
Also closes bug #151


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14145 b3059339-0415-0410-9bf9-f77b7e298cf2
2004-12-11 23:59:36 +00:00
rtognimp 5e252f7920 Fix compilation when LOG is defined
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13678 b3059339-0415-0410-9bf9-f77b7e298cf2
2004-10-18 20:08:44 +00:00
rtognimp 5f0a0e39e4 EOF detection (fix hanging at end of stream)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13677 b3059339-0415-0410-9bf9-f77b7e298cf2
2004-10-18 20:08:12 +00:00
diego e8452368cf chunk size fix from Ross Finlayson, ported from xine
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13290 b3059339-0415-0410-9bf9-f77b7e298cf2
2004-09-08 23:44:34 +00:00
reimar 5dda0ad913 allow empty assignments, necessary for some weird servers...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13204 b3059339-0415-0410-9bf9-f77b7e298cf2
2004-08-30 20:17:31 +00:00
rathann 4da367942a small fixes
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13188 b3059339-0415-0410-9bf9-f77b7e298cf2
2004-08-28 20:56:56 +00:00
alex 7de9985f13 no redefinition, clashes with OpenBSD
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12846 b3059339-0415-0410-9bf9-f77b7e298cf2
2004-07-18 04:23:38 +00:00
alex 08891559e1 cseq starts from 1 according to the standard, patch by Yoshinori Sato
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12679 b3059339-0415-0410-9bf9-f77b7e298cf2
2004-06-26 10:38:26 +00:00
rtognimp d547053b43 More bounds checking fixes (thnaks to Miguel Freitas)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12272 b3059339-0415-0410-9bf9-f77b7e298cf2
2004-04-25 00:17:23 +00:00
rtognimp 31d8127a15 Some sanity and bound checking
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12267 b3059339-0415-0410-9bf9-f77b7e298cf2
2004-04-24 10:33:19 +00:00
rtognimp d7f873f469 Try Real rtsp, then live.com on every rtsp stream (remove extension
based selection)


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12207 b3059339-0415-0410-9bf9-f77b7e298cf2
2004-04-14 20:45:26 +00:00
rtognimp 08654689df 10l let path behave like before the start/stop patch
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11664 b3059339-0415-0410-9bf9-f77b7e298cf2
2003-12-19 22:49:29 +00:00
alex a49337aaa8 keyframe detection support by rgselk <rgselknospam@yahoo.com>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11596 b3059339-0415-0410-9bf9-f77b7e298cf2
2003-12-08 21:57:12 +00:00
rtognimp b84ba866d7 Real rtsp Range parameter (Start and End) support.
Patch by rgselk <rgselknospam(at)yahoo(dot)com>


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11507 b3059339-0415-0410-9bf9-f77b7e298cf2
2003-11-23 13:35:55 +00:00
gabucino fadce2d781 many small typo and grammar fixes
Based on Bernard Leak's mail <bernard 4t brenda-arkle.demon.co.uk>


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11001 b3059339-0415-0410-9bf9-f77b7e298cf2
2003-10-04 17:29:08 +00:00
diego 6ac4f22567 Networking support under MinGW.
Patch by flo/yepyep <flodt8@yahoo.de>.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10282 b3059339-0415-0410-9bf9-f77b7e298cf2
2003-06-11 16:48:09 +00:00
rtognimp 56d2da5af4 Warning fixes, patch by Dominik Mierzejewski
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10233 b3059339-0415-0410-9bf9-f77b7e298cf2
2003-06-01 20:27:32 +00:00
alex 85cbbc3530 Using recv/send instead read/write for proper MinGW support (it's a 4.2BSD standard). Patch by FloDt <flodt8@yahoo.de>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10207 b3059339-0415-0410-9bf9-f77b7e298cf2
2003-05-29 19:36:58 +00:00
rtognimp 7f47ef5532 Fix redirection in real rtsp connections.
Patch by yepyep (sdpplin.c part not committed)


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10200 b3059339-0415-0410-9bf9-f77b7e298cf2
2003-05-28 21:40:53 +00:00
rtognimp 39fe37918d Accept Helix as a valid Real server
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10199 b3059339-0415-0410-9bf9-f77b7e298cf2
2003-05-27 19:58:28 +00:00
rtognimp cdf1feb301 Bigendian fix, with help from Viktor Rosenfeld
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10116 b3059339-0415-0410-9bf9-f77b7e298cf2
2003-05-17 00:58:13 +00:00
rtognimp 8ab9f0251f Removed unneded Cygwin #ifdefs. Tested by Diego Biurrun
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9947 b3059339-0415-0410-9bf9-f77b7e298cf2
2003-04-20 14:40:38 +00:00
rtognimp cf1f19289a Fix compilation for *BSD, Mac OS X and maybe others (info by Steven M. Schultz and Dan Christiansen)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9940 b3059339-0415-0410-9bf9-f77b7e298cf2
2003-04-19 14:54:03 +00:00
rtognimp 2e8e95d779 Real rstp:// streaming support, ported from xine
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9923 b3059339-0415-0410-9bf9-f77b7e298cf2
2003-04-17 20:39:41 +00:00