This PR addresses a bug introduced with #20 for issue #16 where the Peersnap(thumbnailer) would not exit it's RTP read loop when input stream was stopped or closed. The issue seemed to appear when using OBS to stream on either RTMP or FTL protocols.
The fix required deriving a contextWithCancel from the parent context in control and invoking the cancel func in control.StopStream
This PR addresses a bug introduced with #20 for issue #16 where the
Peersnap(thumbnailer)
would not exit it's RTP read loop when input stream was stopped or closed. The issue seemed to appear when using OBS to stream on either RTMP or FTL protocols.The fix required deriving a
contextWithCancel
from the parentcontext
in control and invoking the cancel func incontrol.StopStream