summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2016-01-13 01:58:07 (GMT)
committerChristian Pointner <equinox@helsinki.at>2016-01-13 01:58:07 (GMT)
commitd95d4579b749b7fd3729099e8751ea9584ffdea0 (patch)
tree9e27647c69b7b4da0b3351c569981846d85eae52
parentf5692afaec4f17b5412e357224c1b4f16eb3f400 (diff)
switched to different gst bindings
-rw-r--r--Makefile2
-rw-r--r--src/rhrdlibrary/player.go8
2 files changed, 4 insertions, 6 deletions
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)
}
}