summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)