summaryrefslogtreecommitdiff
path: root/src/rhrdlibrary
diff options
context:
space:
mode:
Diffstat (limited to 'src/rhrdlibrary')
-rw-r--r--src/rhrdlibrary/player.go8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/rhrdlibrary/player.go b/src/rhrdlibrary/player.go
index 8a97ed3..3463190 100644
--- a/src/rhrdlibrary/player.go
+++ b/src/rhrdlibrary/player.go
@@ -26,8 +26,8 @@ package main
import (
"fmt"
+ "github.com/revmischa/gst"
"github.com/ziutek/glib"
- "github.com/ziutek/gst"
"path"
)
@@ -43,11 +43,9 @@ func (p *Player) onMessage(bus *gst.Bus, msg *gst.Message) {
rhdl.Printf("EOS reached!")
p.pipe.SetState(gst.STATE_NULL)
case gst.MESSAGE_ERROR:
- rhdl.Printf("Error: received gst error message")
p.pipe.SetState(gst.STATE_NULL)
- // TODO: this crashes the program
- // err, debug := msg.ParseError()
- // rhdl.Printf("Error: %s (debug: %s)\n", err, debug)
+ _, errstr := msg.ParseError()
+ rhdl.Printf("Error: %s\n", errstr)
}
}