renderer: improved code flow

This commit is contained in:
itsmattkc
2021-09-21 19:10:03 -07:00
parent 751b5f6c44
commit 677277c16d
17 changed files with 401 additions and 345 deletions
+2 -1
View File
@@ -27,12 +27,13 @@
#include "codec/frame.h"
#include "codec/samplebuffer.h"
#include "common/cancelableobject.h"
#include "common/timerange.h"
#include "node/output/viewer/viewer.h"
namespace olive {
class RenderTicket : public QObject
class RenderTicket : public QObject, public CancelableObject
{
Q_OBJECT
public:
+7
View File
@@ -88,6 +88,13 @@ bool RenderTicketWatcher::HasResult()
}
}
void RenderTicketWatcher::Cancel()
{
if (ticket_) {
ticket_->Cancel();
}
}
void RenderTicketWatcher::TicketFinished()
{
emit Finished(this);
+2
View File
@@ -46,6 +46,8 @@ public:
bool HasResult();
void Cancel();
signals:
void Finished(RenderTicketWatcher* watcher);