From d95d4579b749b7fd3729099e8751ea9584ffdea0 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Wed, 13 Jan 2016 02:58:07 +0100 Subject: switched to different gst bindings diff --git a/Makefile b/Makefile index 77025e4..33101d6 100644 --- a/Makefile +++ b/Makefile @@ -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) } } -- cgit v0.10.2