summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2007-09-28 07:34:37 +0000
committerMarcel Holtmann <marcel@holtmann.org>2007-09-28 07:34:37 +0000
commit2fb6bb97176c9e922c14584da550f3edd49f0986 (patch)
tree6d6d0de243fd97c038fe1b58323c245847b26f8e
parent1f536df70ee2320f8dbac33e2341c912bd29a567 (diff)
Check for zero length files
-rw-r--r--audio/gstbluetooth.c2
1 files changed, 1 insertions, 1 deletions
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);