MoodbarPipeline: Cleanup on finish

This commit is contained in:
Jonas Kvinge
2025-01-07 01:09:49 +01:00
parent af525e42b6
commit c7830f6f05
2 changed files with 20 additions and 3 deletions

View File

@@ -47,8 +47,7 @@ class MoodbarPipeline : public QObject {
bool success() const { return success_; }
const QByteArray &data() const { return data_; }
public Q_SLOTS:
void Start();
Q_INVOKABLE void Start();
Q_SIGNALS:
void Finished(const bool success);
@@ -59,6 +58,7 @@ class MoodbarPipeline : public QObject {
QByteArray ToGstUrl(const QUrl &url);
void ReportError(GstMessage *msg);
void Stop(const bool success);
Q_INVOKABLE void Finish(const bool success);
void Cleanup();
static void NewPadCallback(GstElement *element, GstPad *pad, gpointer self);