From 0e64595992b02e3ecd5ccc4072083ba6897fc2c8 Mon Sep 17 00:00:00 2001 From: nareix Date: Wed, 15 Jun 2016 07:28:56 +0800 Subject: [PATCH] print block log when DebugRtp on --- client.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client.go b/client.go index 6bfc1b8..6cc7d36 100644 --- a/client.go +++ b/client.go @@ -217,7 +217,7 @@ func (self *Client) ReadResponse() (res Response, err error) { // $ res.BlockLength = int(h[2])<<8 + int(h[3]) res.BlockNo = int(h[1]) - if self.DebugRtsp { + if self.DebugRtp { fmt.Println("block: len", res.BlockLength, "no", res.BlockNo) } return @@ -228,7 +228,7 @@ func (self *Client) ReadResponse() (res Response, err error) { self.conn.Timeout = self.RtpTimeout for { - if self.DebugRtsp { + if self.DebugRtp { fmt.Println("block: relocate try") } @@ -252,7 +252,7 @@ func (self *Client) ReadResponse() (res Response, err error) { } } - if self.DebugRtsp { + if self.DebugRtp { fmt.Println("block: relocate done") fmt.Println("block: len", res.BlockLength, "no", res.BlockNo) }