Commit e59bf40b authored by Ronald S. Bultje's avatar Ronald S. Bultje
Browse files

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.
parent 87b55ed7
2005-01-08 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
* ext/vorbis/vorbisdec.c: (vorbis_dec_src_query):
Check for pad availability before doing a query on it.
2005-01-08 Stephane LOEUILLET <stephane.loeuillet@tiscali.fr>
 
* ext/dv/gstdvdec.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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment