mirror of
https://gitee.com/openharmony/graphic_graphic_2d
synced 2024-12-20 13:49:07 +00:00
bugfix: capture fail when surfaceNode no buffer
Signed-off-by: lee <liwei576@huawei.com>
This commit is contained in:
parent
178dd3a854
commit
6fed48f4af
@ -80,6 +80,10 @@ std::unique_ptr<Media::PixelMap> RSSurfaceCaptureTask::CreatePixelMapBySurfaceNo
|
||||
ROSEN_LOGE("CreatePixelMapBySurfaceNode: node == nullptr");
|
||||
return nullptr;
|
||||
}
|
||||
if (node->GetBuffer() == nullptr) {
|
||||
ROSEN_LOGE("CreatePixelMapBySurfaceNode: node GetBuffer == nullptr");
|
||||
return nullptr;
|
||||
}
|
||||
int pixmapWidth = node->GetRenderProperties().GetBoundsWidth();
|
||||
int pixmapHeight = node->GetRenderProperties().GetBoundsHeight();
|
||||
Media::InitializationOptions opts;
|
||||
|
Loading…
Reference in New Issue
Block a user