From e59bf40bb18badedb49c03fc1f6847f2be40f724 Mon Sep 17 00:00:00 2001 From: "Ronald S. Bultje" Date: Sat, 8 Jan 2005 18:14:16 +0000 Subject: [PATCH] ext/vorbis/vorbisdec.c: Check for pad availability before doing a query on it. Original commit message from CVS: * ext/vorbis/vorbisdec.c: (vorbis_dec_src_query): Check for pad availability before doing a query on it. --- ChangeLog | 5 +++++ ext/vorbis/vorbisdec.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 6277b25..90155d2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-01-08 Ronald S. Bultje + + * ext/vorbis/vorbisdec.c: (vorbis_dec_src_query): + Check for pad availability before doing a query on it. + 2005-01-08 Stephane LOEUILLET * ext/dv/gstdvdec.c: diff --git a/ext/vorbis/vorbisdec.c b/ext/vorbis/vorbisdec.c index 67edc38..9543ee5 100644 --- a/ext/vorbis/vorbisdec.c +++ b/ext/vorbis/vorbisdec.c @@ -246,7 +246,7 @@ vorbis_dec_src_query (GstPad * pad, GstQueryType query, GstFormat * format, granulepos = dec->granulepos; } else { /* query peer in default format */ - if (!dec->sinkpad || + if (!dec->sinkpad || !GST_PAD_PEER (dec->sinkpad) || !gst_pad_query (GST_PAD_PEER (dec->sinkpad), query, &my_format, &granulepos)) return FALSE; -- 2.7.4