Commit f9e8ead7 authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

Fix compilation warning

parent 23bcdd33
......@@ -82,9 +82,9 @@ static inline int fromDB(double level)
return value;
}
void MixerWidget::property_changed( mlt_service , MixerWidget *widget, char *name )
void MixerWidget::property_changed( mlt_service , MixerWidget *widget, mlt_event_data data )
{
if (widget && !strcmp(name, "_position")) {
if (widget && !strcmp(Mlt::EventData(data).to_string(), "_position")) {
mlt_properties filter_props = MLT_FILTER_PROPERTIES( widget->m_monitorFilter->get_filter());
int pos = mlt_properties_get_int(filter_props, "_position");
if (!widget->m_levels.contains(pos)) {
......@@ -542,7 +542,7 @@ void MixerWidget::connectMixer(bool doConnect)
{
if (doConnect) {
if (m_listener == nullptr) {
m_listener = m_monitorFilter->listen("property-changed", this, mlt_listener(property_changed));
m_listener = m_monitorFilter->listen("property-changed", this, reinterpret_cast<mlt_listener>(property_changed));
}
} else {
delete m_listener;
......
......@@ -59,7 +59,7 @@ public:
void reset();
/** @brief discard stored audio values */
void clear();
static void property_changed( mlt_service , MixerWidget *self, char *name );
static void property_changed( mlt_service , MixerWidget *self, mlt_event_data data );
void setTrackName(const QString &name);
void setMute(bool mute);
/** @brief Returns true if track is muted
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment