decklink: Free the correct memory in our own buffer pool
The buffer itself is 128 bytes into the allocated memory area, to be able to store the size and other metadata before it. Freeing the buffer directly will make malloc moderately unhappy.
This commit is contained in:
parent
275592927b
commit
980ddfdfb7
@ -1030,7 +1030,7 @@ public:
|
||||
if (size == m_lastBufferSize) {
|
||||
gst_queue_array_push_tail (m_buffers, buffer);
|
||||
} else {
|
||||
g_free (buffer);
|
||||
g_free (((uint8_t *) buffer) - 128);
|
||||
}
|
||||
|
||||
g_mutex_unlock (&m_mutex);
|
||||
|
Loading…
x
Reference in New Issue
Block a user