Skip to content

Commit

Permalink
re-order struct fields
Browse files Browse the repository at this point in the history
  • Loading branch information
alexballas committed Sep 26, 2023
1 parent 4b7e371 commit b109c06
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion httphandlers/httphandlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ type HTTPserver struct {
// We only need to run one ffmpeg
// command at a time, per server instance
ffmpeg *exec.Cmd
mu sync.Mutex
handlers map[string]struct {
payload *soapcalls.TVPayload
media interface{}
}
mu sync.Mutex
}

// Screen interface is used to push message back to the user
Expand Down
28 changes: 14 additions & 14 deletions internal/gui/gui.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,46 +25,46 @@ import (

// NewScreen .
type NewScreen struct {
muError sync.RWMutex
mu sync.RWMutex
CurrentPos binding.String
EndPos binding.String
serverStopCTX context.Context
Current fyne.Window
VolumeDown *widget.Button
SlideBar *tappedSlider
cancelEnablePlay context.CancelFunc
PlayPause *widget.Button
Debug *debugWriter
CurrentPos binding.String
EndPos binding.String
VolumeUp *widget.Button
tvdata *soapcalls.TVPayload
tabs *container.AppTabs
CheckVersion *widget.Button
SubsText *widget.Entry
CustomSubsCheck *widget.Check
PlayPause *widget.Button
NextMediaCheck *widget.Check
Stop *widget.Button
DeviceList *deviceList
httpserver *httphandlers.HTTPserver
MediaText *widget.Entry
ExternalMediaURL *widget.Check
GaplessMediaWatcher func(context.Context, *NewScreen, *soapcalls.TVPayload)
cancelEnablePlay context.CancelFunc
SlideBar *tappedSlider
MuteUnmute *widget.Button
VolumeUp *widget.Button
tvdata *soapcalls.TVPayload
NextMediaCheck *widget.Check
VolumeDown *widget.Button
selectedDevice devType
State string
mediafile string
version string
eventlURL string
subsfile string
controlURL string
renderingControlURL string
connectionManagerURL string
State string
mediafile string
currentmfolder string
mediaFormats []string
muError sync.RWMutex
mu sync.RWMutex
Medialoop bool
sliderActive bool
Transcode bool
ErrorVisible bool
Medialoop bool
Hotkeys bool
}

Expand Down
2 changes: 1 addition & 1 deletion internal/gui/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ import (
)

type tappedSlider struct {
mu sync.Mutex
*widget.Slider
screen *NewScreen
end string
mu sync.Mutex
}

type deviceList struct {
Expand Down

0 comments on commit b109c06

Please sign in to comment.