From 5a181f3576eb17f58a0e63fbd42c35abf1e4899f Mon Sep 17 00:00:00 2001
From: Saxon Milton <saxon.milton@gmail.com>
Date: Fri, 28 Dec 2018 03:09:41 +0000
Subject: [PATCH] revid: fix rtmp sending

Approved-by: kortschak <dan@kortschak.io>
---
 revid/revid.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/revid/revid.go b/revid/revid.go
index 93bcdf38..e883bb45 100644
--- a/revid/revid.go
+++ b/revid/revid.go
@@ -157,7 +157,7 @@ func (p *packer) Write(frame []byte) (int, error) {
 	}
 	p.packetCount++
 	now = time.Now()
-	if now.Sub(prevTime) > clipDuration && p.packetCount%7 == 0 {
+	if (p.owner.config.Output1 != Rtmp && now.Sub(prevTime) > clipDuration && p.packetCount%7 == 0) || p.owner.config.Output1 == Rtmp {
 		p.owner.buffer.Flush()
 		p.packetCount = 0
 		prevTime = now