Code quality: errors silently discarded in 4 locations #37

Open
opened 2026-04-04 17:51:04 +00:00 by stu · 0 comments
Owner

Locations

  1. internal/dvd/vob/sri.go:70io.ReadFull error discarded silently; corrupted SPU data may go undetected
  2. internal/player/gstreamer_player.go:269 � seek error explicitly discarded with no log entry
  3. internal/queue/edit.go:139-144, 192-197 � JSON marshal errors silently ignored; config changes may be lost
  4. internal/convert/dvd.go:155-163fmt.Sscanf parse error ignored; bad timecode may cause wrong chapter placement

Fix

Replace discards with logging.Debug(logging.CatXxx, ...) calls at minimum. Errors that affect output quality (sri.go, dvd.go) should propagate to the caller.

## Locations 1. `internal/dvd/vob/sri.go:70` � `io.ReadFull` error discarded silently; corrupted SPU data may go undetected 2. `internal/player/gstreamer_player.go:269` � seek error explicitly discarded with no log entry 3. `internal/queue/edit.go:139-144, 192-197` � JSON marshal errors silently ignored; config changes may be lost 4. `internal/convert/dvd.go:155-163` � `fmt.Sscanf` parse error ignored; bad timecode may cause wrong chapter placement ## Fix Replace discards with `logging.Debug(logging.CatXxx, ...)` calls at minimum. Errors that affect output quality (sri.go, dvd.go) should propagate to the caller.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
leak_technologies/VideoTools#37
No description provided.