Skip to content
Snippets Groups Projects
Commit cf56f042 authored by Andreas Traczyk's avatar Andreas Traczyk
Browse files

directrenderer: handle pull callback failure

If the frameBufferRequested signal fails to set the AVFrame data
pointer, return null.

Change-Id: Iefb0d4670ca5e94c6ace2759fc941b9af39e682e
parent 406047f8
No related branches found
No related tags found
No related merge requests found
...@@ -68,6 +68,10 @@ public: ...@@ -68,6 +68,10 @@ public:
// Important: Subscription to this signal MUST be synchronous(Qt::DirectConnection). // Important: Subscription to this signal MUST be synchronous(Qt::DirectConnection).
Q_EMIT parent_->frameBufferRequested(frameBufferPtr->avframe.get()); Q_EMIT parent_->frameBufferRequested(frameBufferPtr->avframe.get());
if (frameBufferPtr->avframe->data[0] == nullptr) {
return nullptr;
}
return std::move(frameBufferPtr); return std::move(frameBufferPtr);
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment