bin/rtsp_client in rtsp-0.4.1 vs bin/rtsp_client in rtsp-0.4.2

- old
+ new

@@ -9,11 +9,11 @@ #---------------------------------------------------------------------------- # Turn on logging RTSP::Client.configure { |c| c.log = false } opts.on('-d', '--debug', "Turn on RTSP::Client logging.") do - RTSP::Client.configure { |c| c.log = true } + RTSP::Client.log = true end #---------------------------------------------------------------------------- # Get description opts.on('--describe [URL]', "Get description from the given URL.") do |url| @@ -48,11 +48,11 @@ if url.nil? puts "Must pass in a URL." exit end - rtsp_client = RTSP::Client.new(url) do |connection, capturer| - capturer.rtp_file = File.open("#{Dir.pwd}/rtsp_client_stream.rtp", "wb") + rtsp_client = RTSP::Client.new(url) do |_, capturer| + capturer.capture_file = File.open("#{Dir.pwd}/rtsp_client_stream.rtp", "wb") end begin puts "Getting server options..." response = rtsp_client.options