From 2da8d2af85100797248dcd7a789777266a19e0de Mon Sep 17 00:00:00 2001 From: saxon Date: Tue, 22 Jan 2019 13:54:56 +1030 Subject: [PATCH] av/rtmp/rtmp_test.go: using local rtmpSender io.writer implemntation to handle errors from rtmp --- rtmp/rtmp_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rtmp/rtmp_test.go b/rtmp/rtmp_test.go index 618f2b95..be4908a6 100644 --- a/rtmp/rtmp_test.go +++ b/rtmp/rtmp_test.go @@ -243,8 +243,9 @@ func TestFromFile(t *testing.T) { } defer f.Close() + rs := &rtmpSender{conn: c} // Pass RTMP session, true for audio, true for video, and 25 FPS - flvEncoder, err := flv.NewEncoder(c, true, true, 25) + flvEncoder, err := flv.NewEncoder(rs, true, true, 25) if err != nil { t.Fatalf("failed to create encoder: %v", err) }