Fixed CID 1303. The config message was dereferenced in the constructor list.
I don't know if it can be NULL at all, but let's be defensive. It was already checked later anyways. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27454 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
f1ca556caf
commit
67710adc92
@ -105,7 +105,6 @@ status_t OpenSoundDeviceEngine::Open(int mode)
|
||||
// C-Media supports "only" 16). If OSS uses the same 2048 bytes even for
|
||||
// 32 bit/sample, then I could see how that would be asking for too much,
|
||||
// since that would effectively half the latency.
|
||||
|
||||
#ifdef HAIKU_TARGET_PLATFORM_HAIKU
|
||||
uint32 bufferCount = 6;
|
||||
uint32 bufferSize = 0x000b; // 1024 bytes
|
||||
|
@ -323,7 +323,7 @@ OpenSoundNode::OpenSoundNode(BMediaAddOn* addon, const char* name,
|
||||
fTimeSourceStartTime(0),
|
||||
|
||||
fWeb(NULL),
|
||||
fConfig(*config)
|
||||
fConfig(0UL)
|
||||
{
|
||||
CALLED();
|
||||
|
||||
@ -365,8 +365,10 @@ OpenSoundNode::OpenSoundNode(BMediaAddOn* addon, const char* name,
|
||||
* fPreferredFormat.u.raw_audio.channel_count;
|
||||
#endif
|
||||
|
||||
if (config)
|
||||
PRINT_OBJECT(*config);
|
||||
if (config != NULL) {
|
||||
fConfig = *config;
|
||||
PRINT_OBJECT(fConfig);
|
||||
}
|
||||
|
||||
fInitCheckStatus = B_OK;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user