Add missing names for parameter variables

This commit is contained in:
Jonas Kvinge
2024-09-28 12:32:12 +02:00
parent f2e28d18bc
commit 3cb0f60900
73 changed files with 365 additions and 164 deletions

View File

@@ -350,7 +350,9 @@ Transcoder::StartJobStatus Transcoder::MaybeStartNextJob() {
}
void Transcoder::NewPadCallback(GstElement*, GstPad *pad, gpointer data) {
void Transcoder::NewPadCallback(GstElement *element, GstPad *pad, gpointer data) {
Q_UNUSED(element)
JobState *state = reinterpret_cast<JobState*>(data);
GstPad *const audiopad = gst_element_get_static_pad(state->convert_element_, "sink");
@@ -365,7 +367,9 @@ void Transcoder::NewPadCallback(GstElement*, GstPad *pad, gpointer data) {
}
GstBusSyncReply Transcoder::BusCallbackSync(GstBus*, GstMessage *msg, gpointer data) {
GstBusSyncReply Transcoder::BusCallbackSync(GstBus *bus, GstMessage *msg, gpointer data) {
Q_UNUSED(bus)
JobState *state = reinterpret_cast<JobState*>(data);
switch (GST_MESSAGE_TYPE(msg)) {

View File

@@ -138,8 +138,8 @@ class Transcoder : public QObject {
GstElement *CreateElementForMimeType(GstElementFactoryListType element_type, const QString &mime_type, GstElement *bin = nullptr);
void SetElementProperties(const QString &name, GObject *object);
static void NewPadCallback(GstElement*, GstPad *pad, gpointer data);
static GstBusSyncReply BusCallbackSync(GstBus*, GstMessage *msg, gpointer data);
static void NewPadCallback(GstElement *element, GstPad *pad, gpointer data);
static GstBusSyncReply BusCallbackSync(GstBus *bus, GstMessage *msg, gpointer data);
private:
using JobStateList = QList<SharedPtr<JobState>>;