-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Eos timer #541
Eos timer #541
Conversation
pkg/pipeline/watch.go
Outdated
@@ -121,6 +121,7 @@ func (c *Controller) messageWatch(msg *gst.Message) bool { | |||
switch msg.Type() { | |||
case gst.MessageEOS: | |||
logger.Infow("EOS received") | |||
c.eosTimer.Stop() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nil check? possible EOS is sent by something else?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldn't be possible but might as well add it
c.eosTimer = time.AfterFunc(time.Second*30, func() { | ||
c.OnError(errors.ErrPipelineFrozen) | ||
}) | ||
c.p.SendEOS() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will this be confusing if we mark the session as failed, but the media is still available in the end?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the media won't be available if the eos is never received
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(unless it's HLS, in which case the playlist will not be closed)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My question is about calling c.OnError(errors.ErrPipelineFrozen)
after 30s.
No description provided.