summaryrefslogtreecommitdiff
path: root/bilibili/streaming.go
diff options
context:
space:
mode:
authorKeuin <[email protected]>2023-07-14 22:25:27 +0800
committerKeuin <[email protected]>2023-07-14 22:25:27 +0800
commit2ace07d2d88c01a56b4d0f3194bd74a518a769c8 (patch)
treeb218043dacec97c08469855950838ceca67496c6 /bilibili/streaming.go
parentd7bd3edf61109936a09a5115938e86b1c17ea024 (diff)
Refactor: use pointer type of `Bilibili` to prevent unexpected copy.
Diffstat (limited to 'bilibili/streaming.go')
-rw-r--r--bilibili/streaming.go2
1 files changed, 1 insertions, 1 deletions
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,