mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-03 05:59:10 +00:00
gst/id3demux/id3v2frames.c: Fix compilation of id3demux when zlib is not present.
Original commit message from CVS: * gst/id3demux/id3v2frames.c: (id3demux_id3v2_parse_frame): Fix compilation of id3demux when zlib is not present. (Fixes #326602; patch by: Sergey Scobich)
This commit is contained in:
parent
01a118181f
commit
1f4f628a5d
2 changed files with 12 additions and 0 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2006-01-15 Jan Schmidt <thaytan@mad.scientist.com>
|
||||||
|
|
||||||
|
* gst/id3demux/id3v2frames.c: (id3demux_id3v2_parse_frame):
|
||||||
|
Fix compilation of id3demux when zlib is not present.
|
||||||
|
(Fixes #326602; patch by: Sergey Scobich)
|
||||||
|
|
||||||
2006-01-15 Tim-Philipp Müller <tim at centricular dot net>
|
2006-01-15 Tim-Philipp Müller <tim at centricular dot net>
|
||||||
|
|
||||||
* ext/esd/Makefile.am:
|
* ext/esd/Makefile.am:
|
||||||
|
|
|
@ -92,6 +92,7 @@ id3demux_id3v2_parse_frame (ID3TagsWorking * work)
|
||||||
work->parse_size = frame_data_size;
|
work->parse_size = frame_data_size;
|
||||||
|
|
||||||
if (work->frame_flags & ID3V2_FRAME_FORMAT_COMPRESSION) {
|
if (work->frame_flags & ID3V2_FRAME_FORMAT_COMPRESSION) {
|
||||||
|
#ifdef HAVE_ZLIB
|
||||||
uLongf destSize = work->parse_size;
|
uLongf destSize = work->parse_size;
|
||||||
Bytef *dest, *src;
|
Bytef *dest, *src;
|
||||||
|
|
||||||
|
@ -105,6 +106,11 @@ id3demux_id3v2_parse_frame (ID3TagsWorking * work)
|
||||||
g_free (work->parse_data);
|
g_free (work->parse_data);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
GST_WARNING ("Compressed ID3v2 tag frame could not be decompressed"
|
||||||
|
" because gstid3demux was compiled without zlib support");
|
||||||
|
return FALSE;
|
||||||
|
#endif
|
||||||
} else {
|
} else {
|
||||||
work->parse_data = work->hdr.frame_data;
|
work->parse_data = work->hdr.frame_data;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue