From 2fb6bb97176c9e922c14584da550f3edd49f0986 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Fri, 28 Sep 2007 07:34:37 +0000 Subject: Check for zero length files --- audio/gstbluetooth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'audio/gstbluetooth.c') diff --git a/audio/gstbluetooth.c b/audio/gstbluetooth.c index 7e02e202..ce065820 100644 --- a/audio/gstbluetooth.c +++ b/audio/gstbluetooth.c @@ -38,7 +38,7 @@ static void sbc_typefind(GstTypeFind *tf, gpointer ignore) { guint8 *data = gst_type_find_peek(tf, 0, 1); - if (*data != 0x9c) /* SBC syncword */ + if (data == NULL || *data != 0x9c) /* SBC syncword */ return; gst_type_find_suggest(tf, GST_TYPE_FIND_POSSIBLE, SBC_CAPS); -- cgit