Fix forward declarations for encoding/quality control helpers
This commit is contained in:
parent
25235e3ec6
commit
550b66ccb9
9
main.go
9
main.go
|
|
@ -2280,6 +2280,10 @@ func buildConvertView(state *appState, src *videoSource) fyne.CanvasObject {
|
|||
qualitySectionSimple fyne.CanvasObject
|
||||
qualitySectionAdv fyne.CanvasObject
|
||||
)
|
||||
var (
|
||||
updateEncodingControls func()
|
||||
updateQualityVisibility func()
|
||||
)
|
||||
|
||||
qualityOptions := []string{"Draft (CRF 28)", "Standard (CRF 23)", "High (CRF 18)", "Lossless"}
|
||||
var syncingQuality bool
|
||||
|
|
@ -2560,8 +2564,6 @@ func buildConvertView(state *appState, src *videoSource) fyne.CanvasObject {
|
|||
}
|
||||
}
|
||||
|
||||
var updateQualityVisibility func()
|
||||
|
||||
formatSelect := widget.NewSelect(formatLabels, func(value string) {
|
||||
for _, opt := range formatOptions {
|
||||
if opt.Label == value {
|
||||
|
|
@ -2712,9 +2714,6 @@ func buildConvertView(state *appState, src *videoSource) fyne.CanvasObject {
|
|||
widget.NewSeparator(),
|
||||
)
|
||||
|
||||
// Shared updater for bitrate/quality UI state; defined later alongside controls
|
||||
var updateEncodingControls func()
|
||||
|
||||
// Bitrate Mode
|
||||
bitrateModeSelect = widget.NewSelect([]string{"CRF", "CBR", "VBR", "Target Size"}, func(value string) {
|
||||
state.convert.BitrateMode = value
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user