Skip to content

Commit

Permalink
Use typed Interest object.
Browse files Browse the repository at this point in the history
  • Loading branch information
saivert committed Jun 9, 2024
1 parent 859e0c9 commit 4b55979
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/backend/manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ mod imp {
.expect("loadig mixer-api plugin");

wp_om.add_interest({
let interest = wp::registry::ObjectInterest::new(wp::pw::Node::static_type());
let interest: Interest<wp::pw::Node> = wp::registry::Interest::new();
let variant = glib::Variant::tuple_from_iter(["Stream/Output/Audio", "Stream/Input/Audio", "Audio/Source", "Audio/Sink"].map(ToVariant::to_variant));

interest.add_constraint(
Expand All @@ -155,7 +155,7 @@ mod imp {
});

wp_om.add_interest({
let interest = wp::registry::ObjectInterest::new(wp::pw::Device::static_type());
let interest: Interest<wp::pw::Device> = wp::registry::Interest::new();
interest.add_constraint(
wp::registry::ConstraintType::PwGlobalProperty,
"media.class",
Expand Down

0 comments on commit 4b55979

Please sign in to comment.