From 2929bd10de03e5c755fbb5268e3436681a82d7f5 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Wed, 13 Jan 2016 21:32:46 +0100 Subject: check return of play functions 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() } -- cgit v0.10.2