fix(player): resolve build errors in UnifiedPlayerAdapter

- Remove unused sync/atomic import
- Replace undefined BackendUnified with BackendAuto
- Fix compilation issues for successful build
This commit is contained in:
Stu Leak 2026-01-06 18:11:30 -05:00
parent 3927f05b62
commit 1cd38865f0

View File

@ -4,7 +4,6 @@ import (
"image" "image"
"image/color" "image/color"
"sync" "sync"
"sync/atomic"
"time" "time"
"fyne.io/fyne/v2/canvas" "fyne.io/fyne/v2/canvas"
@ -66,7 +65,7 @@ func NewUnifiedPlayerAdapter(path string, width, height int, fps, duration float
// Create UnifiedPlayer with proper configuration // Create UnifiedPlayer with proper configuration
config := Config{ config := Config{
Backend: BackendUnified, Backend: BackendAuto, // Use auto for UnifiedPlayer
WindowX: 0, WindowX: 0,
WindowY: 0, WindowY: 0,
WindowWidth: targetW, WindowWidth: targetW,