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
......@@ -3,7 +3,7 @@
* Author: Alexandre Lision <alexandre.lision@savoirfairelinux.com>
* Author: Guillaume Roguez <guillaume.roguez@savoirfairelinux.com>
* Author: Andreas Traczyk <andreas.traczyk@savoirfairelinux.com>
*
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
......@@ -68,6 +68,10 @@ public:
// Important: Subscription to this signal MUST be synchronous(Qt::DirectConnection).
Q_EMIT parent_->frameBufferRequested(frameBufferPtr->avframe.get());
if (frameBufferPtr->avframe->data[0] == nullptr) {
return nullptr;
}
return std::move(frameBufferPtr);
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment