mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-10 22:49:00 +01:00
Merge pull request #2854 from Tilka/valgrind
Fix some small stuff found with Valgrind
This commit is contained in:
commit
e60018abd4
@ -163,7 +163,8 @@ void PulseAudio::StateCallback(pa_context* c)
|
|||||||
void PulseAudio::UnderflowCallback(pa_stream* s)
|
void PulseAudio::UnderflowCallback(pa_stream* s)
|
||||||
{
|
{
|
||||||
m_pa_ba.tlength += BUFFER_SAMPLES * m_channels * m_bytespersample;
|
m_pa_ba.tlength += BUFFER_SAMPLES * m_channels * m_bytespersample;
|
||||||
pa_stream_set_buffer_attr(s, &m_pa_ba, nullptr, nullptr);
|
pa_operation* op = pa_stream_set_buffer_attr(s, &m_pa_ba, nullptr, nullptr);
|
||||||
|
pa_operation_unref(op);
|
||||||
|
|
||||||
WARN_LOG(AUDIO, "pulseaudio underflow, new latency: %d bytes", m_pa_ba.tlength);
|
WARN_LOG(AUDIO, "pulseaudio underflow, new latency: %d bytes", m_pa_ba.tlength);
|
||||||
}
|
}
|
||||||
|
@ -10,6 +10,8 @@ void CachedInterpreter::Init()
|
|||||||
{
|
{
|
||||||
m_code.reserve(CODE_SIZE / sizeof(Instruction));
|
m_code.reserve(CODE_SIZE / sizeof(Instruction));
|
||||||
|
|
||||||
|
jo.enableBlocklink = false;
|
||||||
|
|
||||||
JitBaseBlockCache::Init();
|
JitBaseBlockCache::Init();
|
||||||
|
|
||||||
code_block.m_stats = &js.st;
|
code_block.m_stats = &js.st;
|
||||||
|
@ -63,7 +63,7 @@ void Init(std::vector<Core::Device*> &controllerDevices)
|
|||||||
|
|
||||||
const char* devnode = udev_device_get_devnode(dev);
|
const char* devnode = udev_device_get_devnode(dev);
|
||||||
// We only care about devices which we have read/write access to.
|
// We only care about devices which we have read/write access to.
|
||||||
if (access(devnode, W_OK) == 0)
|
if (devnode && access(devnode, W_OK) == 0)
|
||||||
{
|
{
|
||||||
// Unfortunately udev gives us no way to filter out the non event device interfaces.
|
// Unfortunately udev gives us no way to filter out the non event device interfaces.
|
||||||
// So we open it and see if it works with evdev ioctls or not.
|
// So we open it and see if it works with evdev ioctls or not.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user