plugins/screencast: Fix sizeof() of SPA_META_Header
At the moment, the sizeof the pointer is passed, but the size of the struct must be passed instead.
This commit is contained in:
parent
15e23b825e
commit
7d557784a1
1 changed files with 2 additions and 2 deletions
|
@ -569,7 +569,7 @@ void ScreenCastStream::recordFrame(const QRegion &_damagedRegion)
|
|||
|
||||
void ScreenCastStream::addHeader(spa_buffer *spaBuffer)
|
||||
{
|
||||
spa_meta_header *spaHeader = (spa_meta_header *)spa_buffer_find_meta_data(spaBuffer, SPA_META_Header, sizeof(spaHeader));
|
||||
spa_meta_header *spaHeader = (spa_meta_header *)spa_buffer_find_meta_data(spaBuffer, SPA_META_Header, sizeof(spa_meta_header));
|
||||
if (spaHeader) {
|
||||
spaHeader->flags = 0;
|
||||
spaHeader->dts_offset = 0;
|
||||
|
@ -580,7 +580,7 @@ void ScreenCastStream::addHeader(spa_buffer *spaBuffer)
|
|||
|
||||
void ScreenCastStream::corruptHeader(spa_buffer *spaBuffer)
|
||||
{
|
||||
spa_meta_header *spaHeader = (spa_meta_header *)spa_buffer_find_meta_data(spaBuffer, SPA_META_Header, sizeof(spaHeader));
|
||||
spa_meta_header *spaHeader = (spa_meta_header *)spa_buffer_find_meta_data(spaBuffer, SPA_META_Header, sizeof(spa_meta_header));
|
||||
if (spaHeader) {
|
||||
spaHeader->flags = SPA_META_HEADER_FLAG_CORRUPTED;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue