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) ...@@ -82,9 +82,9 @@ static inline int fromDB(double level)
return value; 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()); mlt_properties filter_props = MLT_FILTER_PROPERTIES( widget->m_monitorFilter->get_filter());
int pos = mlt_properties_get_int(filter_props, "_position"); int pos = mlt_properties_get_int(filter_props, "_position");
if (!widget->m_levels.contains(pos)) { if (!widget->m_levels.contains(pos)) {
...@@ -542,7 +542,7 @@ void MixerWidget::connectMixer(bool doConnect) ...@@ -542,7 +542,7 @@ void MixerWidget::connectMixer(bool doConnect)
{ {
if (doConnect) { if (doConnect) {
if (m_listener == nullptr) { 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 { } else {
delete m_listener; delete m_listener;
......
...@@ -59,7 +59,7 @@ public: ...@@ -59,7 +59,7 @@ public:
void reset(); void reset();
/** @brief discard stored audio values */ /** @brief discard stored audio values */
void clear(); 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 setTrackName(const QString &name);
void setMute(bool mute); void setMute(bool mute);
/** @brief Returns true if track is muted /** @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