Rename a few controls.
The encoder controls could be confused with actual encoding, so make clear they are just settings. Also, the end point selector controls were not named very well. Change-Id: I27f8bf9c865c5f295abad97c01ef98752af42613 Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com> Reviewed-by: Ling Hu <ling.hu@nokia.com>
This commit is contained in:
committed by
Qt by Nokia
parent
b834fe032f
commit
bba28afe55
@@ -73,15 +73,15 @@ public:
|
||||
|
||||
QMediaControl* requestControl(const char *name)
|
||||
{
|
||||
if (hasControls && qstrcmp(name,QAudioEncoderControl_iid) == 0)
|
||||
if (hasControls && qstrcmp(name,QAudioEncoderSettingsControl_iid) == 0)
|
||||
return mockAudioEncoderControl;
|
||||
if (hasControls && qstrcmp(name,QAudioEndpointSelector_iid) == 0)
|
||||
if (hasControls && qstrcmp(name,QAudioEndpointSelectorControl_iid) == 0)
|
||||
return mockAudioEndpointSelector;
|
||||
if (hasControls && qstrcmp(name,QMediaRecorderControl_iid) == 0)
|
||||
return mockControl;
|
||||
if (hasControls && qstrcmp(name,QMediaContainerControl_iid) == 0)
|
||||
return mockFormatControl;
|
||||
if (hasControls && qstrcmp(name,QVideoEncoderControl_iid) == 0)
|
||||
if (hasControls && qstrcmp(name,QVideoEncoderSettingsControl_iid) == 0)
|
||||
return mockVideoEncoderControl;
|
||||
if (hasControls && qstrcmp(name, QMetaDataWriterControl_iid) == 0)
|
||||
return mockMetaDataControl;
|
||||
@@ -98,10 +98,10 @@ public:
|
||||
}
|
||||
|
||||
QMediaControl *mockControl;
|
||||
QAudioEndpointSelector *mockAudioEndpointSelector;
|
||||
QAudioEncoderControl *mockAudioEncoderControl;
|
||||
QAudioEndpointSelectorControl *mockAudioEndpointSelector;
|
||||
QAudioEncoderSettingsControl *mockAudioEncoderControl;
|
||||
QMediaContainerControl *mockFormatControl;
|
||||
QVideoEncoderControl *mockVideoEncoderControl;
|
||||
QVideoEncoderSettingsControl *mockVideoEncoderControl;
|
||||
MockMetaDataWriterControl *mockMetaDataControl;
|
||||
MockAvailabilityControl *mockAvailabilityControl;
|
||||
MockAudioProbeControl *mockAudioProbeControl;
|
||||
|
||||
Reference in New Issue
Block a user