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

This commit is contained in:
Silvano Seva 2023-09-13 22:26:41 +02:00
parent 8fe9837035
commit c49ae03d01
1 changed files with 1 additions and 1 deletions

View File

@ -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