mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
configure.ac: check for kdemacros.h, too (should fix #141821)
Original commit message from CVS: * configure.ac: check for kdemacros.h, too (should fix #141821) * ext/vorbis/vorbisdec.c: (vorbis_dec_event), (vorbis_dec_chain): don't crash if no header was sent, but nicely error out (fixes part of #141554)
This commit is contained in:
parent
12e2e35f68
commit
39e1d5c6a5
3 changed files with 15 additions and 1 deletions
|
@ -1,3 +1,11 @@
|
||||||
|
2004-05-04 Benjamin Otte <otte@gnome.org>
|
||||||
|
|
||||||
|
* configure.ac:
|
||||||
|
check for kdemacros.h, too (should fix #141821)
|
||||||
|
* ext/vorbis/vorbisdec.c: (vorbis_dec_event), (vorbis_dec_chain):
|
||||||
|
don't crash if no header was sent, but nicely error out (fixes part
|
||||||
|
of #141554)
|
||||||
|
|
||||||
2004-05-04 Wim Taymans <wim@fluendo.com>
|
2004-05-04 Wim Taymans <wim@fluendo.com>
|
||||||
|
|
||||||
* ext/mpeg2enc/gstmpeg2enc.cc: (gst_mpeg2enc_dispose): call the
|
* ext/mpeg2enc/gstmpeg2enc.cc: (gst_mpeg2enc_dispose): call the
|
||||||
|
|
|
@ -1066,7 +1066,7 @@ GST_CHECK_FEATURE(KIO, [kio], kio, [
|
||||||
fi
|
fi
|
||||||
|
|
||||||
for dir in $kde_include_dirs; do
|
for dir in $kde_include_dirs; do
|
||||||
if test -r "$dir/kglobal.h"; then
|
if test -r "$dir/kglobal.h" && test -r "$dir/kdemacros.h"; then
|
||||||
kde_include_dir=$dir
|
kde_include_dir=$dir
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -395,6 +395,12 @@ vorbis_dec_chain (GstPad * pad, GstData * data)
|
||||||
float **pcm;
|
float **pcm;
|
||||||
guint sample_count;
|
guint sample_count;
|
||||||
|
|
||||||
|
if (packet.packetno < 3) {
|
||||||
|
GST_ELEMENT_ERROR (GST_ELEMENT (vd), STREAM, DECODE,
|
||||||
|
(NULL), ("no header sent yet (packet no is %d)", packet.packetno));
|
||||||
|
gst_data_unref (data);
|
||||||
|
return;
|
||||||
|
}
|
||||||
/* normal data packet */
|
/* normal data packet */
|
||||||
if (vorbis_synthesis (&vd->vb, &packet)) {
|
if (vorbis_synthesis (&vd->vb, &packet)) {
|
||||||
GST_ELEMENT_ERROR (GST_ELEMENT (vd), STREAM, DECODE,
|
GST_ELEMENT_ERROR (GST_ELEMENT (vd), STREAM, DECODE,
|
||||||
|
|
Loading…
Reference in a new issue