lib/rtsp/transport_parser.rb in rtsp-0.4.0 vs lib/rtsp/transport_parser.rb in rtsp-0.4.1

- old
+ new

@@ -41,11 +41,11 @@ str('ttl=') >> match('[\d]').repeat(1,3).as(:ttl) end rule(:port) do str('port=') >> match('[\d]').repeat(1,5).as(:rtp) >> - dash.maybe >> match('[\d]').repeat(1,5).as(:rtcp).maybe + dash.maybe >> match('[\d]').repeat(1,5).as(:rtcp).maybe end rule(:ssrc) do str('ssrc=') >> match('[0-9A-Fa-f]').repeat(8).as(:ssrc) end @@ -58,10 +58,10 @@ str('address=') >> match('[\S]').repeat.as(:address) end rule(:mode) do str('mode=') >> str('"').maybe >> match('[A-Za-z]').repeat.as(:mode) >> - str('"').maybe + str('"').maybe end rule(:ip_address) do match('[\d]').repeat(1,3) >> str('.') >> match('[\d]').repeat(1,3) >> str('.') >>