diff --git a/gst-plugin-flv/src/flvdemux.rs b/gst-plugin-flv/src/flvdemux.rs index ca718fb3..acb9f9b3 100644 --- a/gst-plugin-flv/src/flvdemux.rs +++ b/gst-plugin-flv/src/flvdemux.rs @@ -162,9 +162,9 @@ impl AudioFormat { "audio/x-adpcm", &[("layout", &"swf")], )), - flavors::SoundFormat::NELLYMOSER_16KHZ_MONO | - flavors::SoundFormat::NELLYMOSER_8KHZ_MONO | - flavors::SoundFormat::NELLYMOSER => { + flavors::SoundFormat::NELLYMOSER_16KHZ_MONO + | flavors::SoundFormat::NELLYMOSER_8KHZ_MONO + | flavors::SoundFormat::NELLYMOSER => { Some(gst::Caps::new_simple("audio/x-nellymoser", &[])) } flavors::SoundFormat::PCM_ALAW => Some(gst::Caps::new_simple("audio/x-alaw", &[])), @@ -420,8 +420,8 @@ impl Metadata { }; let args = match script_data.arguments { - flavors::ScriptDataValue::Object(ref objects) | - flavors::ScriptDataValue::ECMAArray(ref objects) => objects, + flavors::ScriptDataValue::Object(ref objects) + | flavors::ScriptDataValue::ECMAArray(ref objects) => objects, _ => return metadata, }; diff --git a/gst-plugin-simple/src/lib.rs b/gst-plugin-simple/src/lib.rs index f01d0b10..25e2c37c 100644 --- a/gst-plugin-simple/src/lib.rs +++ b/gst-plugin-simple/src/lib.rs @@ -19,8 +19,7 @@ pub mod source; pub mod sink; pub mod demuxer; -pub type UriValidator = Fn(&url::Url) - -> Result<(), gst_plugin::error::UriError> +pub type UriValidator = Fn(&url::Url) -> Result<(), gst_plugin::error::UriError> + Send + Sync + 'static; diff --git a/gst-plugin-togglerecord/examples/gtk_recording.rs b/gst-plugin-togglerecord/examples/gtk_recording.rs index 120efc37..51fe3006 100644 --- a/gst-plugin-togglerecord/examples/gtk_recording.rs +++ b/gst-plugin-togglerecord/examples/gtk_recording.rs @@ -225,13 +225,16 @@ fn create_ui(app: >k::Application) { let video_sink = &video_sink_clone; let togglerecord = &togglerecord_clone; - let position = video_sink.query_position::().unwrap_or(0.into()); + let position = video_sink + .query_position::() + .unwrap_or(0.into()); position_label.set_text(&format!("Position: {:.1}", position)); let recording_duration = togglerecord - .get_static_pad("src") - .unwrap() - .query_position::().unwrap_or(0.into()); + .get_static_pad("src") + .unwrap() + .query_position::() + .unwrap_or(0.into()); recorded_duration_label.set_text(&format!("Recorded: {:.1}", recording_duration)); glib::Continue(true)