Commit c31c88c3 authored by Alexandre Lision's avatar Alexandre Lision Committed by gerrit2

video: adapt to LRC api change

Must be merged on top of LRC patchset:
https://gerrit-ring.savoirfairelinux.com/#/c/2773/

Issue: #80643
Change-Id: I768d8e85bff1f7b944403d74924e9f7ca495dde8
parent 7f01b07d
......@@ -362,10 +362,10 @@
-(void) renderer: (Video::Renderer*)renderer renderFrameForView:(NSView*) view
{
auto data = renderer->currentSmartFrame();
auto data = renderer->currentFrame();
QSize res = renderer->size();
auto buf = reinterpret_cast<const unsigned char*>(data->data());
auto buf = reinterpret_cast<const unsigned char*>(data.data());
CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB();
CGContextRef newContext = CGBitmapContextCreate((void *)buf,
......
......@@ -165,10 +165,10 @@ QMetaObject::Connection previewStopped;
-(void) renderer: (Video::Renderer*)renderer renderFrameForView:(NSView*) view
{
auto data = renderer->currentSmartFrame();
auto data = renderer->currentFrame();
QSize res = renderer->size();
auto buf = reinterpret_cast<const unsigned char*>(data->data());
auto buf = reinterpret_cast<const unsigned char*>(data.data());
CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB();
CGContextRef newContext = CGBitmapContextCreate((void *)buf,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment