Connection syntax migration (#637)

This commit is contained in:
Jonas Kvinge
2021-01-26 16:48:04 +01:00
committed by GitHub
parent d57f6303f4
commit bf7c8df353
362 changed files with 2452 additions and 2434 deletions

View File

@@ -36,13 +36,13 @@ class MoodbarPipeline : public QObject {
Q_OBJECT
public:
explicit MoodbarPipeline(const QUrl& local_filename);
explicit MoodbarPipeline(const QUrl &local_filename);
~MoodbarPipeline() override;
static bool IsAvailable();
bool success() const { return success_; }
const QByteArray& data() const { return data_; }
const QByteArray &data() const { return data_; }
public slots:
void Start();
@@ -51,24 +51,24 @@ class MoodbarPipeline : public QObject {
void Finished(bool success);
private:
GstElement* CreateElement(const QString& factory_name);
GstElement *CreateElement(const QString &factory_name);
void ReportError(GstMessage *msg);
void Stop(bool success);
void Stop(const bool success);
void Cleanup();
static void NewPadCallback(GstElement*, GstPad* pad, gpointer data);
static GstFlowReturn NewBufferCallback(GstAppSink* app_sink, gpointer self);
static gboolean BusCallback(GstBus*, GstMessage* msg, gpointer data);
static GstBusSyncReply BusCallbackSync(GstBus*, GstMessage* msg, gpointer data);
static void NewPadCallback(GstElement*, GstPad *pad, gpointer data);
static GstFlowReturn NewBufferCallback(GstAppSink *app_sink, gpointer self);
static gboolean BusCallback(GstBus*, GstMessage *msg, gpointer data);
static GstBusSyncReply BusCallbackSync(GstBus*, GstMessage *msg, gpointer data);
private:
static bool sIsAvailable;
static const int kBands;
QUrl local_filename_;
GstElement* pipeline_;
GstElement* convert_element_;
GstElement *pipeline_;
GstElement *convert_element_;
std::unique_ptr<MoodbarBuilder> builder_;