diff options
author | Christian Pointner <equinox@helsinki.at> | 2016-01-13 01:58:07 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2016-01-13 01:58:07 (GMT) |
commit | d95d4579b749b7fd3729099e8751ea9584ffdea0 (patch) | |
tree | 9e27647c69b7b4da0b3351c569981846d85eae52 /src/rhrdlibrary | |
parent | f5692afaec4f17b5412e357224c1b4f16eb3f400 (diff) |
switched to different gst bindings
Diffstat (limited to 'src/rhrdlibrary')
-rw-r--r-- | src/rhrdlibrary/player.go | 8 |
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) } } |