summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2016-01-13 20:32:46 (GMT)
committerChristian Pointner <equinox@helsinki.at>2016-01-13 20:32:46 (GMT)
commit2929bd10de03e5c755fbb5268e3436681a82d7f5 (patch)
treee3b3e3920df4e70df410c30d5a121aaac4c06232
parentb0bcbd4e25febd4bfaa445a259c5034dd687ba26 (diff)
check return of play functions
-rw-r--r--src/rhlibrary/mainwindow.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/rhlibrary/mainwindow.go b/src/rhlibrary/mainwindow.go
index 1d8f0be..d7c240d 100644
--- a/src/rhlibrary/mainwindow.go
+++ b/src/rhlibrary/mainwindow.go
@@ -40,8 +40,12 @@ type MainWindow struct {
func (mw *MainWindow) ShowAndRun() {
mw.win.ShowAll()
- mw.player.Load(1, 1)
- mw.player.Play()
+ if err := mw.player.Load(1, 1); err != nil {
+ rhl.Println(err)
+ }
+ if err := mw.player.Play(); err != nil {
+ rhl.Println(err)
+ }
gtk.Main()
}