[MPlayer-dev-eng] [PATCH] libmpdemux/realrtsp handling url parameters (start|end)=hh:mm:ss.msec

rgselk rgselknospam at yahoo.com
Mon Nov 17 14:54:36 CET 2003


--- Attila Kinali <kinali at gmx.net> wrote:
> On Mon, 17 Nov 2003 02:32:29 -0800 (PST)
> rgselk <rgselknospam at yahoo.com> wrote:
> 
> > Please keep in mind the message you replied to was the second part
> of
> > the patch which is independant of the first part.
> 
> Hmm... Can you then send both patches again in one mail
> with a description what they do ?

Sure.

The first is a patch to use the parameters 'start' and 'end' in the url
to set the rtsp 'Range' parameter.
Last Friday I discovered that realplay still uses the complete url in
the request, so I changed the patch to do the same.

The second patch is to find the string .rm or .ra followed by a '?' or
'&' or at the end of the string. This allows for detecting a real rtsp
url even when there is another '.' in the string. (for example in the
millisecond part of the start tag: hh:mm:ss.msec).

A sample url is:
rtsp://streams2.omroep.nl/tv/vara/kopspijkers/bb.20031108.rm?start=0:49:45.223&end=0:50:19.991

Without the second patch I get:
Playing
rtsp://streams2.omroep.nl/tv/vara/kopspijkers/bb.20031108.rm?start=0:49:45.223&end=0:50:19.991.
Not a Realmedia rtsp url. Trying standard rtsp protocol.

And that is because it finds the 'extention' .991
Removing the milliseconds of course 'solves' it as well.

Regards,
  rgselk.


$ diffstat realrtsp.diff.txt 
 real.c |   36 +++++++++++++++++++++++++++++++++++-
 rtsp.c |   31 +++++++++++++++++++++++++++++++
 rtsp.h |    1 +
 3 files changed, 67 insertions(+), 1 deletion(-)

$ diffstat network.diff.txt 
 network.c |   28 +++++++---------------------
 1 files changed, 7 insertions(+), 21 deletions(-)



__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: realrtsp.diff.txt
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20031117/f415ef43/attachment.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: network.diff.txt
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20031117/f415ef43/attachment-0001.txt>


More information about the MPlayer-dev-eng mailing list