summaryrefslogtreecommitdiff
path: root/src/rhlibrary
diff options
context:
space:
mode:
Diffstat (limited to 'src/rhlibrary')
-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()
}