Skip cover art for DVD targets to avoid mux errors
This commit is contained in:
parent
bd2518ad10
commit
1f2ba58376
8
main.go
8
main.go
|
|
@ -893,6 +893,10 @@ func (s *appState) executeConvertJob(ctx context.Context, job *queue.Job, progre
|
||||||
// Add cover art if available
|
// Add cover art if available
|
||||||
coverArtPath, _ := cfg["coverArtPath"].(string)
|
coverArtPath, _ := cfg["coverArtPath"].(string)
|
||||||
hasCoverArt := coverArtPath != ""
|
hasCoverArt := coverArtPath != ""
|
||||||
|
if isDVD {
|
||||||
|
// DVD targets do not support attached cover art
|
||||||
|
hasCoverArt = false
|
||||||
|
}
|
||||||
if hasCoverArt {
|
if hasCoverArt {
|
||||||
args = append(args, "-i", coverArtPath)
|
args = append(args, "-i", coverArtPath)
|
||||||
}
|
}
|
||||||
|
|
@ -3525,6 +3529,10 @@ func (s *appState) startConvert(status *widget.Label, btn, cancelBtn *widget.But
|
||||||
|
|
||||||
// Add cover art if available
|
// Add cover art if available
|
||||||
hasCoverArt := cfg.CoverArtPath != ""
|
hasCoverArt := cfg.CoverArtPath != ""
|
||||||
|
if isDVD {
|
||||||
|
// DVD targets do not support attached cover art
|
||||||
|
hasCoverArt = false
|
||||||
|
}
|
||||||
if hasCoverArt {
|
if hasCoverArt {
|
||||||
args = append(args, "-i", cfg.CoverArtPath)
|
args = append(args, "-i", cfg.CoverArtPath)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user