mirror of
https://github.com/mapmapteam/mapmap.git
synced 2026-06-16 12:33:19 +02:00
MediaImpl: ALways do memcpy, no conversion needed
Because of the RGBA caps, bpp will always be 32
This commit is contained in:
+1
-4
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user