Skip to content
Snippets Groups Projects
Commit b3eaf79d authored by Tristan Matthews's avatar Tristan Matthews
Browse files

* #8968: pulselayer: avoid C-style pointer casting

parent 1923bb42
No related branches found
No related tags found
No related merge requests found
......@@ -587,11 +587,11 @@ void PulseLayer::sink_input_info_callback(pa_context *c UNUSED, const pa_sink_in
i->owner_module,
i->mute ? "muted" : pa_cvolume_snprint(cv, sizeof(cv), &i->volume),
i->monitor_source,
(double) i->latency,
static_cast<double>(i->latency),
i->flags & PA_SINK_HW_VOLUME_CTRL ? "HW_VOLUME_CTRL " : "",
i->flags & PA_SINK_LATENCY ? "LATENCY " : "",
i->flags & PA_SINK_HARDWARE ? "HARDWARE" : "");
((PulseLayer *)userdata)->sinkList_.push_back(i->name);
static_cast<PulseLayer *>(userdata)->sinkList_.push_back(i->name);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment