GNOME Bugzilla – Bug 513628
[flacdec] Decoding of PICTURE blocks is always disabled by bad ifdef
Last modified: 2008-02-02 19:49:38 UTC
Please describe the problem: In gstflacdec.c, decoding of PICTURE blocks is guarded against compilation with old FLAC libraries using an #ifdef. However, the #ifdef checks against the always-absent define FLAC__METADATA_TYPE_PICTURE (which is actually an enum value). Instead, it should use the LEGACY_FLAC macro defined in gstflacdec.h. Steps to reproduce: Actual results: Expected results: Does this happen every time? Other information:
Created attachment 104169 [details] [review] Compile PICTURE block support if LEGACY_FLAC is not defined
Oops, sorry about that. 2008-02-02 Tim-Philipp Müller <tim at centricular dot net> Patch by: John Millikin <jmillikin at gmail dot com> * ext/flac/gstflacdec.c: (gst_flac_dec_scan_for_last_block), (gst_flac_extract_picture_buffer), (gst_flac_dec_metadata_callback): Fix extraction of picture blocks with newer libflac versions again: FLAC__METADATA_TYPE_PICTURE is an enum, not a define (#513628).