From 9421b75dfd01e5322061a41ab4f762c5a2f5f606 Mon Sep 17 00:00:00 2001 From: Alex Ballas Date: Tue, 31 Dec 2024 02:21:28 +0200 Subject: [PATCH] Fix crash when using gapless playback --- go.mod | 2 +- go.sum | 4 ++-- internal/gui/actions.go | 4 ++++ 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index 6fd146c..fcb3f65 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,7 @@ module github.com/alexballas/go2tv go 1.23.3 require ( - fyne.io/fyne/v2 v2.5.2 + fyne.io/fyne/v2 v2.5.3 github.com/alexballas/go-ssdp v0.0.3 github.com/gdamore/tcell/v2 v2.7.4 github.com/h2non/filetype v1.1.3 diff --git a/go.sum b/go.sum index b2b6717..b3a3b34 100644 --- a/go.sum +++ b/go.sum @@ -37,8 +37,8 @@ cloud.google.com/go/storage v1.6.0/go.mod h1:N7U0C8pVQ/+NIKOBQyamJIeKQKkZ+mxpohl cloud.google.com/go/storage v1.8.0/go.mod h1:Wv1Oy7z6Yz3DshWRJFhqM/UCfaWIRTdp0RXyy7KQOVs= cloud.google.com/go/storage v1.10.0/go.mod h1:FLPqc6j+Ki4BU591ie1oL6qBQGu2Bl/tZ9ullr3+Kg0= dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= -fyne.io/fyne/v2 v2.5.2 h1:eSyGTmSkv10yAdAeHpDet6u2KkKxOGFc14kQu81We7Q= -fyne.io/fyne/v2 v2.5.2/go.mod h1:26gqPDvtaxHeyct+C0BBjuGd2zwAJlPkUGSBrb+d7Ug= +fyne.io/fyne/v2 v2.5.3 h1:k6LjZx6EzRZhClsuzy6vucLZBstdH2USDGHSGWq8ly8= +fyne.io/fyne/v2 v2.5.3/go.mod h1:0GOXKqyvNwk3DLmsFu9v0oYM0ZcD1ysGnlHCerKoAmo= fyne.io/systray v1.11.0 h1:D9HISlxSkx+jHSniMBR6fCFOUjk1x/OOOJLa9lJYAKg= fyne.io/systray v1.11.0/go.mod h1:RVwqP9nYMo7h5zViCBHri2FgjXF7H2cub7MAq4NSoLs= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= diff --git a/internal/gui/actions.go b/internal/gui/actions.go index 810bc8d..3049c6f 100644 --- a/internal/gui/actions.go +++ b/internal/gui/actions.go @@ -454,6 +454,10 @@ out: } if nextURI == "" { + if screen.tvdata == nil { + continue + } + // No need to check for the error as this is something // that we did in previous steps in our workflow mPath, _ := url.Parse(screen.tvdata.MediaURL)