From ad7712e6d2add324c6dbdffb319b989a32a668b5 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Fri, 29 Jan 2016 00:32:32 +0100 Subject: go into 'stop' on EOS diff --git a/player/player.go b/player/player.go index 5d4e1d4..c3465c0 100644 --- a/player/player.go +++ b/player/player.go @@ -140,9 +140,9 @@ func (p *Player) onMessage(bus *gst.Bus, msg *gst.Message) { switch msg.GetType() { case gst.MESSAGE_EOS: p.pipe.SetState(gst.STATE_NULL) - p.state = IDLE + p.pipe.SetState(gst.STATE_PAUSED) + p.state = PAUSED p.duration = 0 - p.updateChan <- updateData{duration: p.duration} case gst.MESSAGE_WARNING: warn, _ := msg.ParseWarning() p.stdlog.Printf("GStreamer Pipeline Warning: %s", warn) -- cgit v0.10.2