From 2ace07d2d88c01a56b4d0f3194bd74a518a769c8 Mon Sep 17 00:00:00 2001 From: Keuin Date: Fri, 14 Jul 2023 22:25:27 +0800 Subject: Refactor: use pointer type of `Bilibili` to prevent unexpected copy. --- bilibili/streaming.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bilibili/streaming.go') diff --git a/bilibili/streaming.go b/bilibili/streaming.go index 2e0416c..3269cf1 100644 --- a/bilibili/streaming.go +++ b/bilibili/streaming.go @@ -16,7 +16,7 @@ import ( const InitReadBytes = 4096 // 4KiB // CopyLiveStream read data from a livestream video stream, copy them to a writer. -func (b Bilibili) CopyLiveStream( +func (b *Bilibili) CopyLiveStream( ctx context.Context, roomId types.RoomId, stream types.StreamingUrlInfo, -- cgit v1.2.3