diff options
-rw-r--r-- | audio/gstbluetooth.c | 2 |
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); |