Audio stream: fixed missing NULL pointer check in audio device driver selection.
This commit is contained in:
parent
8fe9837035
commit
c49ae03d01
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue