[Live-devel] successful command but NULL result string

Ross Finlayson finlayson at live555.com
Fri Feb 4 01:10:18 PST 2011


>I have a case where the response to a "sendOptionsCommand" returns no
>error, (result = 200) but the result string is NULL.
>I read RTSPClient.hh and the description of the responseHandler isn't
>very clear if this can be possible.
>Could you tell me if it's a bug, in the library ?
>I noticed you call strDup(NULL) in this case.
>
>The test url is :
>rtsp://wmlive.bbc.net.uk/wms/england/lrnewcastle?bbc-

%./openRTSP -o 'rtsp://wmlive.bbc.net.uk/wms/england/lrnewcastle?bbc-'
Opening connection to 212.58.251.90, port 554...
...remote connection opened
Sending request: OPTIONS 
rtsp://wmlive.bbc.net.uk/wms/england/lrnewcastle?bbc- RTSP/1.0
CSeq: 2
User-Agent: ./openRTSP (LIVE555 Streaming Media v2011.01.24)


Received 277 new bytes of response data.
Received a complete OPTIONS response:
RTSP/1.0 200 OK
Supported: com.microsoft.wm.srvppair, com.microsoft.wm.sswitch, 
com.microsoft.wm.eosmsg, com.microsoft.wm.fastcache, 
com.microsoft.wm.packetpairssrc, com.microsoft.wm.startupprofile
Date: Fri, 04 Feb 2011 09:03:37 GMT
CSeq: 2
Server: WMServer/9.1.1.5001


RTSP "OPTIONS" request returned: (NULL)


No, this is not a bug.  As you can see, the server is some 
brain-damaged non-standard Microsoft thing.  It's not including a 
"Public:" header in its response to our RTSP "OPTIONS" command.  So, 
as far as our client is concerned, this is a NULL response.

(And "strDup(NULL)" is OK; I made sure that it just returns NULL in that case.)


If you think that's bad, wait until you see the SDP description that 
this server returns in response to "DESCRIBE":

v=0
o=- 201102040905570718 201102040905570718 IN IP4 127.0.0.1
s=BBC Newcastle
c=IN IP4 0.0.0.0
b=AS:49
a=maxps:2261
t=0 0
a=control:rtsp://wmlive.bbc.net.uk/wms%5Cengland%5Clrnewcastle/
a=etag:{6CC7D408-8ED2-A217-F5F7-098DCE207CB1}
a=range:npt=1.579-1.579
a=type:broadcast,playlist
a=recvonly
a=pgmpu:data:application/x-wms-contentdesc,8,language,31,0,,5,title,31,13,BBC%20Newcastle,6,author,31,13,BBC%20Newcastle,9,copyright,31,36,(c)%20British%20Broadcasting%20Corporation,35,WMS_CONTENT_DESCRIPTION_DESCRIPTION,31,0,,30,WMS_CONTENT_DESCRIPTION_RATING,31,0,,44,WMS_CONTENT_DESCRIPTION_SERVER_BRANDING_INFO,31,12,WMServer/9.1,51,WMS_CONTENT_DESCRIPTION_PLAYLIST_ENTRY_START_OFFSET,3,4,1579,47,WMS_CONTENT_DESCRIPTION_PLAYLIST_ENTRY_DURATION,3,1,0,58,WMS_CONTENT_DESCRIPTION_COPIED_METADATA_FROM_PLAYLIST_FILE,3,1,1,42,WMS_CONTENT_DESCRIPTION_PLAYLIST_ENTRY_URL,31,1,/%0D%0A
a=pgmpu:data:application/vnd.ms.wms-hdr.asfv1;base64,MCaydY5mzxGm2QCqAGLObL8TAAAAAAAABwAAAAECMyaydY5mzxGm2QCqAGLObKgAAAAAAAAAHAAcAEoAAgACAEIAQgBDACAATgBlAHcAYwBhAHMAdABsAGUAAABCAEIAQwAgAE4AZQB3AGMAYQBzAHQAbABlAAAAKABjACkAIABCAHIAaQB0AGkAcwBoACAAQgByAG8AYQBkAGMAYQBzAHQAaQBuAGcAIABDAG8AcgBwAG8AcgBhAHQAaQBvAG4AAAAAAAAAznX4e41G0RGNggBgl8misiAAAAAAAAAAAQABAAa+AACh3KuMR6nPEY7kAMAMIFNlaAAAAAAAAAALoLIVMSJeSYbP9ao+6bYb8RMAAAAAAACQcvDWScTLAf////8AAAAAAAAAAAAAAAAAAAAAAAAAACsGAAAAAAAACQAAANUIAADVCAAABr4AALUDv18uqc8RjuMAwAwgU2WxEAAAAAAAABHS06u6qc8RjuYAwAwgU2UGAIMQAACpRkN84O/8S7IpOT7eQVyFJwAAAAAAAAABAAxlAG4ALQBnAGIAAADLpeYUcsYyQ4OZqWlSBltaWAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAmLsAACsGAAAAAAAAmLsAACsGAAAAAAAAtggAAAAAAAABAAA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b=RR:0
a=rtpmap:96 x-asf-pf/1000
a=control:audio
a=stream:1
m=application 0 RTP/AVP 96
b=RS:0
b=RR:0
a=rtpmap:96 x-wms-rtx/1000
a=control:rtx
a=stream:65536


And then, needless to say:

Unable to create receiver for "audio/X-ASF-PF" subsession: RTP 
payload format unknown or not supported
Unable to create receiver for "application/X-WMS-RTX" subsession: RTP 
payload format unknown or not supported

-- 

Ross Finlayson
Live Networks, Inc.
http://www.live555.com/


More information about the live-devel mailing list