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:
Sebastian Dröge 2017-09-21 14:40:06 +03:00
parent 275592927b
commit 980ddfdfb7

View File

@ -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);