From a9c6822e3fc55021eeea642cf98a36cd4cfe838e Mon Sep 17 00:00:00 2001 From: Sergey Scobich Date: Sun, 15 Jan 2006 20:21:48 +0000 Subject: [PATCH] tag: id3v2: Fix compilation of id3demux when zlib is not present. Original commit message from CVS: * gst-libs/gst/tag/id3v2frames.c: (id3demux_id3v2_parse_frame): Fix compilation of id3demux when zlib is not present. (Fixes #326602; patch by: Sergey Scobich) --- gst-libs/gst/tag/id3v2frames.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gst-libs/gst/tag/id3v2frames.c b/gst-libs/gst/tag/id3v2frames.c index 7b3b9bcf06..ed4c10421f 100644 --- a/gst-libs/gst/tag/id3v2frames.c +++ b/gst-libs/gst/tag/id3v2frames.c @@ -92,6 +92,7 @@ id3demux_id3v2_parse_frame (ID3TagsWorking * work) work->parse_size = frame_data_size; if (work->frame_flags & ID3V2_FRAME_FORMAT_COMPRESSION) { +#ifdef HAVE_ZLIB uLongf destSize = work->parse_size; Bytef *dest, *src; @@ -105,6 +106,11 @@ id3demux_id3v2_parse_frame (ID3TagsWorking * work) g_free (work->parse_data); return FALSE; } +#else + GST_WARNING ("Compressed ID3v2 tag frame could not be decompressed" + " because gstid3demux was compiled without zlib support"); + return FALSE; +#endif } else { work->parse_data = work->hdr.frame_data; } -- 2.34.1