QAudioRecorder: fixed handling the missing inputs control.
Added check for null audioEndpointSelector control in QAudioRecorder::audioInputs() Change-Id: I506dcea9e8d3a468319acf2489cd4d803a5c187d Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
This commit is contained in:
committed by
Qt by Nokia
parent
69cef0c24c
commit
b48009ce9e
@@ -155,7 +155,11 @@ QAudioRecorder::~QAudioRecorder()
|
||||
|
||||
QStringList QAudioRecorder::audioInputs() const
|
||||
{
|
||||
return d_func()->audioEndpointSelector->availableEndpoints();
|
||||
Q_D(const QAudioRecorder);
|
||||
if (d->audioEndpointSelector)
|
||||
return d->audioEndpointSelector->availableEndpoints();
|
||||
else
|
||||
return QStringList();
|
||||
}
|
||||
|
||||
/*!
|
||||
|
||||
Reference in New Issue
Block a user