From b3e92491580e9d59ce7c5c85b200e362fb501629 Mon Sep 17 00:00:00 2001 From: aler9 <46489434+aler9@users.noreply.github.com> Date: Wed, 16 Dec 2020 22:30:15 +0100 Subject: [PATCH] fix PAUSE with UDP (#157)" --- internal/client/client.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/client/client.go b/internal/client/client.go index b95cf88f..6b698aed 100644 --- a/internal/client/client.go +++ b/internal/client/client.go @@ -778,6 +778,7 @@ func (c *Client) run() { } c.stopPlay() c.state = statePrePlay + c.path.OnClientPause(c) case stateRecord: if c.streamProtocol == gortsplib.StreamProtocolTCP { @@ -786,6 +787,7 @@ func (c *Client) run() { } c.stopRecord() c.state = statePreRecord + c.path.OnClientPause(c) } return &base.Response{