summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2016-01-28 23:32:32 (GMT)
committerChristian Pointner <equinox@spreadspace.org>2016-01-28 23:32:32 (GMT)
commitad7712e6d2add324c6dbdffb319b989a32a668b5 (patch)
treeaceeb7275033c625cd3cea3d398be66a9e25fa58
parente08d24fd199bee764e5dfcf751c21a9d7774387f (diff)
go into 'stop' on EOS
-rw-r--r--player/player.go4
1 files changed, 2 insertions, 2 deletions
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)