MusicPlayerDaemon / MPD

Music Player Daemon
https://www.musicpd.org/
GNU General Public License v2.0
2.18k stars 350 forks source link

ogg chaining support now in flac! \(^O^)/ #2122

Open whatamesss opened 1 month ago

whatamesss commented 1 month ago

Bug report

Describe the bug

ogg chain playback has long been broken in flac

Expected Behavior

streams continue to play as song changes occur

Actual Behavior

player hangs or stops at song change/serial number update

Version

mpd-git flac-git

Configuration

this patch enables the feature:

diff --git a/src/libFLAC/ogg_decoder_aspect.c b/src/libFLAC/ogg_decoder_aspect.c index 2cd06278..bb04a9c4 100644 --- a/src/libFLAC/ogg_decoder_aspect.c +++ b/src/libFLAC/ogg_decoder_aspect.c @@ -83,7 +83,7 @@ void FLAC__ogg_decoder_aspect_set_serial_number(FLACOggDecoderAspect *aspect, void FLACogg_decoder_aspect_set_defaults(FLAC__OggDecoderAspect *aspect) { aspect->use_first_serial_number = true;

please update mpd to make use of new flac git master (abi changes?)

whatamesss commented 1 month ago

https://github.com/xiph/flac/pull/735#event-14431154995

jcorporation commented 1 month ago

Why do you not provide a pull request? Should this be enabled only for specific flac versions?

MaxKellermann commented 1 month ago

The patch is not a MPD patch because the affected source file does not exist in MPD. I don't know what kind of patch this is, but I guess this feature request is bogus.

whatamesss commented 1 month ago

this is not an mpd patch it actually patches flac source code to enable the chaining feature...please hold tight. i'm trying to figure this out. this fixes an issue reported to mpd many times...the fix is in libflac, but the flac author said clients will need to make changes too...i'm trying to gather more info

whatamesss commented 1 month ago

Why do you not provide a pull request? Should this be enabled only for specific flac versions?

until the flac makes a release, this would only be usable in the git master....just hoping you guys can prepare mpd and make it use the feature. for now, it will have to be enabled by the distro or user by patching flac