Ticket #3545 (closed defect: fixed)
Opened 5 years ago
Last modified 5 years ago
mythmusic not playing complete .flac files when compiled with flac-1.1.4
| Reported by: | anonymous | Owned by: | stuartm |
|---|---|---|---|
| Priority: | minor | Milestone: | 0.21 |
| Component: | mythmusic | Version: | 0.20-fixes |
| Severity: | medium | Keywords: | mythmusic flac |
| Cc: | Ticket locked: | no |
Description
upon attempting to play a .flac file, mythmusic plays *maybe* the first decoded frame, then moves on to the next file. this appears to happen because the flacdecoder isn't checking for some of the newer non-error status codes returned by the flac decoder lib in 1.1.4.
i've patched the flacdecoder.cpp file of mythmusic to take the new status codes into account. note: the patch is probably not compatible with much older versions of flac (probably needs some fine tuning based on flac api version).
Attachments
Change History
Changed 5 years ago by james_defelice@…
-
attachment
mythmusic-flac-1.1.4.patch
added
comment:1 Changed 5 years ago by stuartm
- Owner changed from ijr to stuartm
- Status changed from new to assigned
Changed 5 years ago by stuartm
-
attachment
mythmusic_flac_decoder_state.diff
added
Patch which should work against 1.1.2
comment:2 Changed 5 years ago by stuartm
- Milestone changed from unknown to 0.21
Could you try the patch I've attached? It does the same as your patch but should build and work on systems with Flac 1.1.2 installed as well as those with 1.1.3. and 1.1.4.
comment:3 Changed 5 years ago by stuartm
- Status changed from assigned to closed
- Resolution set to fixed
comment:4 Changed 5 years ago by ijc@…
Hello,
Would it be possible to have this patch applied to the release-0.20-fixed branch? It applies cleanly for me here.
Many thanks, Ian.

patch for flacdecoder.cpp