phyhw / rtsplib-java

Automatically exported from code.google.com/p/rtsplib-java
GNU Lesser General Public License v3.0
3 stars 0 forks source link

Parameters inverted at the RTSPRequest constructor #2

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Apparently the parameters are inverted at the RTSPRequest constructor:
public RTSPRequest(String messageLine) throws URISyntaxException
{
    String[] parts = messageLine.split(" ");
    setLine(parts[0], Method.valueOf(parts[1]));
}

setLine() looks like this:
public void setLine(String uri, Method method) throws URISyntaxException

So instead, the second line of the constructor shoud be
setLine(parts[1], Method.valueOf(parts[0]));
to match the request line, e.g.
DESCRIBE rtsp://example RTSP/1.0

Original issue reported on code.google.com by flavios...@gmail.com on 6 Jan 2011 at 12:41

GoogleCodeExporter commented 8 years ago
fixed in r7

Original comment by paulo.pa...@gmail.com on 21 Jan 2011 at 1:51