diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2022-10-23 23:03:22 +0300 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2022-10-23 23:08:46 +0300 |
commit | 9a68f6e221576f94e153f5f20e499b22745621ec (patch) | |
tree | 776a587d54578bc7dff1fe432bf3008308bffb79 /audio/spotify/src | |
parent | 86776be58c5d7e8607653edcd719ac1f0ba8d992 (diff) |
Move from `imp.instance()` to `imp.obj()`
It's doing the same thing and is shorter.
Diffstat (limited to 'audio/spotify/src')
-rw-r--r-- | audio/spotify/src/spotifyaudiosrc/imp.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/audio/spotify/src/spotifyaudiosrc/imp.rs b/audio/spotify/src/spotifyaudiosrc/imp.rs index 9c102cec..c168fc3d 100644 --- a/audio/spotify/src/spotifyaudiosrc/imp.rs +++ b/audio/spotify/src/spotifyaudiosrc/imp.rs @@ -442,7 +442,7 @@ impl URIHandlerImpl for SpotifyAudioSrc { for (key, value) in url.query_pairs() { match key.as_ref() { "username" | "password" | "cache-credentials" | "cache-files" => { - self.instance().set_property(&key, value.as_ref()); + self.obj().set_property(&key, value.as_ref()); } _ => { gst::warning!(CAT, imp: self, "unsupported query: {}={}", key, value); @@ -450,7 +450,7 @@ impl URIHandlerImpl for SpotifyAudioSrc { } } - self.instance() + self.obj() .set_property("track", format!("{}:{}", url.scheme(), url.path())); Ok(()) |