MediaImpl: ALways do memcpy, no conversion needed

Because of the RGBA caps, bpp will always be 32
This commit is contained in:
Vasilis Liaskovitis
2014-05-10 15:44:08 +02:00
parent dc25c2a874
commit 4c80d2c543
+1 -4
View File
@@ -125,10 +125,7 @@ bool MediaImpl::_videoPull()
{
// For debugging:
//gst_util_dump_mem(map.data, map.size)
if (bpp == 32)
memcpy(_data, map.data, size * 4);
else
convert24to32(_data, map.data, size);
memcpy(_data, map.data, size * 4);
gst_buffer_unmap(buffer, &map);
}