Audio stream: fixed missing NULL pointer check in audio device driver selection.

pull/187/head
Silvano Seva 2023-09-13 22:26:41 +02:00
rodzic 8fe9837035
commit c49ae03d01
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -91,7 +91,7 @@ streamId audioStream_start(const pathId path, stream_sample_t * const buf,
}
// No audio device found
if(dev == NULL)
if((dev == NULL) || (dev->driver == NULL))
return -ENODEV;
// Search for an empty audio stream slot