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:
@@ -105,7 +105,6 @@ status_t OpenSoundDeviceEngine::Open(int mode)
|
|||||||
// C-Media supports "only" 16). If OSS uses the same 2048 bytes even for
|
// 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,
|
// 32 bit/sample, then I could see how that would be asking for too much,
|
||||||
// since that would effectively half the latency.
|
// since that would effectively half the latency.
|
||||||
|
|
||||||
#ifdef HAIKU_TARGET_PLATFORM_HAIKU
|
#ifdef HAIKU_TARGET_PLATFORM_HAIKU
|
||||||
uint32 bufferCount = 6;
|
uint32 bufferCount = 6;
|
||||||
uint32 bufferSize = 0x000b; // 1024 bytes
|
uint32 bufferSize = 0x000b; // 1024 bytes
|
||||||
|
|||||||
@@ -323,7 +323,7 @@ OpenSoundNode::OpenSoundNode(BMediaAddOn* addon, const char* name,
|
|||||||
fTimeSourceStartTime(0),
|
fTimeSourceStartTime(0),
|
||||||
|
|
||||||
fWeb(NULL),
|
fWeb(NULL),
|
||||||
fConfig(*config)
|
fConfig(0UL)
|
||||||
{
|
{
|
||||||
CALLED();
|
CALLED();
|
||||||
|
|
||||||
@@ -365,8 +365,10 @@ OpenSoundNode::OpenSoundNode(BMediaAddOn* addon, const char* name,
|
|||||||
* fPreferredFormat.u.raw_audio.channel_count;
|
* fPreferredFormat.u.raw_audio.channel_count;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (config)
|
if (config != NULL) {
|
||||||
PRINT_OBJECT(*config);
|
fConfig = *config;
|
||||||
|
PRINT_OBJECT(fConfig);
|
||||||
|
}
|
||||||
|
|
||||||
fInitCheckStatus = B_OK;
|
fInitCheckStatus = B_OK;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user