Original commit message from CVS:
* ext/vorbis/vorbisdec.c: (vorbis_dec_src_query):
Fix #327216 (null dereference in vorbisdec)
+2006-01-16 Thomas Vander Stichele <thomas at apestaart dot org>
+
+ * ext/vorbis/vorbisdec.c: (vorbis_dec_src_query):
+ Fix #327216 (null dereference in vorbisdec)
+
2006-01-16 Tim-Philipp Müller <tim at centricular dot net>
* ext/theora/theoradec.c: (theora_handle_comment_packet):
{
gint64 granulepos;
GstVorbisDec *dec;
- gboolean res;
+ gboolean res = FALSE;
dec = GST_VORBIS_DEC (GST_PAD_PARENT (pad));
case GST_QUERY_DURATION:
{
/* query peer for total length */
+ if (!gst_pad_is_linked (dec->sinkpad)) {
+ GST_WARNING_OBJECT (dec, "sink pad %" GST_PTR_FORMAT " is not linked",
+ dec->sinkpad);
+ goto error;
+ }
if (!(res = gst_pad_query (GST_PAD_PEER (dec->sinkpad), query)))
goto error;
break;