From 26e7e93bfddb120aff99bcb6628f60962de02c1c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim-Philipp=20M=C3=BCller?= Date: Tue, 16 Feb 2010 16:49:39 +0000 Subject: [PATCH] faad: guard against codec_data field with a NULL buffer in caps Fixes #609478. --- ext/faad/gstfaad.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ext/faad/gstfaad.c b/ext/faad/gstfaad.c index 2ed9189..15c993f 100644 --- a/ext/faad/gstfaad.c +++ b/ext/faad/gstfaad.c @@ -353,6 +353,8 @@ gst_faad_setcaps (GstPad * pad, GstCaps * caps) faad->packetised = TRUE; buf = gst_value_get_buffer (value); + g_return_val_if_fail (buf != NULL, FALSE); + cdata = GST_BUFFER_DATA (buf); csize = GST_BUFFER_SIZE (buf); -- 2.7.4