diff options
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | src/rhrdlibrary/player.go | 8 |
2 files changed, 4 insertions, 6 deletions
@@ -29,7 +29,7 @@ EXECUTEABLE := rhrdlibrary LIBS := "code.helsinki.at/rhrd-go/rddb" \ "github.com/ziutek/glib" \ - "github.com/ziutek/gst" + "github.com/revmischa/gst" .PHONY: getlibs updatelibs vet format build clean distclean 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) } } |