mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-06-07 00:39:24 +00:00
parent
5c89c3db69
commit
c6578c8699
|
@ -82,7 +82,7 @@ pub struct SpotifyAudioSrc {
|
||||||
impl ObjectSubclass for SpotifyAudioSrc {
|
impl ObjectSubclass for SpotifyAudioSrc {
|
||||||
const NAME: &'static str = "GstSpotifyAudioSrc";
|
const NAME: &'static str = "GstSpotifyAudioSrc";
|
||||||
type Type = super::SpotifyAudioSrc;
|
type Type = super::SpotifyAudioSrc;
|
||||||
type ParentType = gst_base::BaseSrc;
|
type ParentType = gst_base::PushSrc;
|
||||||
type Interfaces = (gst::URIHandler,);
|
type Interfaces = (gst::URIHandler,);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -258,12 +258,12 @@ impl BaseSrcImpl for SpotifyAudioSrc {
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
impl PushSrcImpl for SpotifyAudioSrc {
|
||||||
fn create(
|
fn create(
|
||||||
&self,
|
&self,
|
||||||
_offset: u64,
|
|
||||||
_buffer: Option<&mut gst::BufferRef>,
|
_buffer: Option<&mut gst::BufferRef>,
|
||||||
_length: u32,
|
|
||||||
) -> Result<CreateSuccess, gst::FlowError> {
|
) -> Result<CreateSuccess, gst::FlowError> {
|
||||||
let state = self.state.lock().unwrap();
|
let state = self.state.lock().unwrap();
|
||||||
let state = state.as_ref().unwrap();
|
let state = state.as_ref().unwrap();
|
||||||
|
|
|
@ -12,7 +12,7 @@ use gst::prelude::*;
|
||||||
mod imp;
|
mod imp;
|
||||||
|
|
||||||
glib::wrapper! {
|
glib::wrapper! {
|
||||||
pub struct SpotifyAudioSrc(ObjectSubclass<imp::SpotifyAudioSrc>) @extends gst_base::BaseSrc, gst::Element, gst::Object, @implements gst::URIHandler;
|
pub struct SpotifyAudioSrc(ObjectSubclass<imp::SpotifyAudioSrc>) @extends gst_base::PushSrc, gst_base::BaseSrc, gst::Element, gst::Object, @implements gst::URIHandler;
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn register(plugin: &gst::Plugin) -> Result<(), glib::BoolError> {
|
pub fn register(plugin: &gst::Plugin) -> Result<(), glib::BoolError> {
|
||||||
|
|
|
@ -5910,6 +5910,7 @@
|
||||||
"description": "Spotify source",
|
"description": "Spotify source",
|
||||||
"hierarchy": [
|
"hierarchy": [
|
||||||
"GstSpotifyAudioSrc",
|
"GstSpotifyAudioSrc",
|
||||||
|
"GstPushSrc",
|
||||||
"GstBaseSrc",
|
"GstBaseSrc",
|
||||||
"GstElement",
|
"GstElement",
|
||||||
"GstObject",
|
"GstObject",
|
||||||
|
|
Loading…
Reference in a new issue