diff --git a/gst-plugin-audiofx/src/audioecho.rs b/gst-plugin-audiofx/src/audioecho.rs index 4fe136f2..a5b7e04a 100644 --- a/gst-plugin-audiofx/src/audioecho.rs +++ b/gst-plugin-audiofx/src/audioecho.rs @@ -172,7 +172,8 @@ impl ObjectSubclass for AudioEcho { gst::PadDirection::Src, gst::PadPresence::Always, &caps, - ); + ) + .unwrap(); klass.add_pad_template(src_pad_template); let sink_pad_template = gst::PadTemplate::new( @@ -180,7 +181,8 @@ impl ObjectSubclass for AudioEcho { gst::PadDirection::Sink, gst::PadPresence::Always, &caps, - ); + ) + .unwrap(); klass.add_pad_template(sink_pad_template); klass.install_properties(&PROPERTIES); diff --git a/gst-plugin-closedcaption/src/mcc_enc.rs b/gst-plugin-closedcaption/src/mcc_enc.rs index c778bb4a..d19c2ebf 100644 --- a/gst-plugin-closedcaption/src/mcc_enc.rs +++ b/gst-plugin-closedcaption/src/mcc_enc.rs @@ -555,7 +555,8 @@ impl ObjectSubclass for MccEnc { gst::PadDirection::Sink, gst::PadPresence::Always, &caps, - ); + ) + .unwrap(); klass.add_pad_template(sink_pad_template); let caps = gst::Caps::builder("application/x-mcc").build(); @@ -564,7 +565,8 @@ impl ObjectSubclass for MccEnc { gst::PadDirection::Src, gst::PadPresence::Always, &caps, - ); + ) + .unwrap(); klass.add_pad_template(src_pad_template); klass.install_properties(&PROPERTIES); diff --git a/gst-plugin-closedcaption/src/mcc_parse.rs b/gst-plugin-closedcaption/src/mcc_parse.rs index 3ec5fe9e..19e0205c 100644 --- a/gst-plugin-closedcaption/src/mcc_parse.rs +++ b/gst-plugin-closedcaption/src/mcc_parse.rs @@ -603,7 +603,8 @@ impl ObjectSubclass for MccParse { gst::PadDirection::Src, gst::PadPresence::Always, &caps, - ); + ) + .unwrap(); klass.add_pad_template(src_pad_template); let caps = gst::Caps::builder("application/x-mcc") @@ -614,7 +615,8 @@ impl ObjectSubclass for MccParse { gst::PadDirection::Sink, gst::PadPresence::Always, &caps, - ); + ) + .unwrap(); klass.add_pad_template(sink_pad_template); } } diff --git a/gst-plugin-file/src/filesink.rs b/gst-plugin-file/src/filesink.rs index 5c8adfa8..b84630c8 100644 --- a/gst-plugin-file/src/filesink.rs +++ b/gst-plugin-file/src/filesink.rs @@ -144,7 +144,8 @@ impl ObjectSubclass for FileSink { gst::PadDirection::Sink, gst::PadPresence::Always, &caps, - ); + ) + .unwrap(); klass.add_pad_template(sink_pad_template); klass.install_properties(&PROPERTIES); diff --git a/gst-plugin-file/src/filesrc.rs b/gst-plugin-file/src/filesrc.rs index ef049bd9..13f17d00 100644 --- a/gst-plugin-file/src/filesrc.rs +++ b/gst-plugin-file/src/filesrc.rs @@ -158,7 +158,8 @@ impl ObjectSubclass for FileSrc { gst::PadDirection::Src, gst::PadPresence::Always, &caps, - ); + ) + .unwrap(); klass.add_pad_template(src_pad_template); klass.install_properties(&PROPERTIES); diff --git a/gst-plugin-flv/src/flvdemux.rs b/gst-plugin-flv/src/flvdemux.rs index 3d0a023c..4e832ad6 100644 --- a/gst-plugin-flv/src/flvdemux.rs +++ b/gst-plugin-flv/src/flvdemux.rs @@ -230,7 +230,8 @@ impl ObjectSubclass for FlvDemux { gst::PadDirection::Src, gst::PadPresence::Sometimes, &caps, - ); + ) + .unwrap(); klass.add_pad_template(audiosrc_pad_template); let mut caps = gst::Caps::new_empty(); @@ -263,7 +264,8 @@ impl ObjectSubclass for FlvDemux { gst::PadDirection::Src, gst::PadPresence::Sometimes, &caps, - ); + ) + .unwrap(); klass.add_pad_template(videosrc_pad_template); let caps = gst::Caps::builder("video/x-flv").build(); @@ -272,7 +274,8 @@ impl ObjectSubclass for FlvDemux { gst::PadDirection::Sink, gst::PadPresence::Always, &caps, - ); + ) + .unwrap(); klass.add_pad_template(sink_pad_template); } } diff --git a/gst-plugin-http/src/httpsrc.rs b/gst-plugin-http/src/httpsrc.rs index 9c029eeb..6b6af1d2 100644 --- a/gst-plugin-http/src/httpsrc.rs +++ b/gst-plugin-http/src/httpsrc.rs @@ -462,7 +462,8 @@ impl ObjectSubclass for HttpSrc { gst::PadDirection::Src, gst::PadPresence::Always, &caps, - ); + ) + .unwrap(); klass.add_pad_template(src_pad_template); klass.install_properties(&PROPERTIES); diff --git a/gst-plugin-threadshare/src/appsrc.rs b/gst-plugin-threadshare/src/appsrc.rs index 70788810..64f5ea88 100644 --- a/gst-plugin-threadshare/src/appsrc.rs +++ b/gst-plugin-threadshare/src/appsrc.rs @@ -507,7 +507,8 @@ impl ObjectSubclass for AppSrc { gst::PadDirection::Src, gst::PadPresence::Always, &caps, - ); + ) + .unwrap(); klass.add_pad_template(src_pad_template); klass.install_properties(&PROPERTIES); diff --git a/gst-plugin-threadshare/src/proxy.rs b/gst-plugin-threadshare/src/proxy.rs index 8c7be572..1d4ca9c3 100644 --- a/gst-plugin-threadshare/src/proxy.rs +++ b/gst-plugin-threadshare/src/proxy.rs @@ -649,7 +649,8 @@ impl ObjectSubclass for ProxySink { gst::PadDirection::Sink, gst::PadPresence::Always, &caps, - ); + ) + .unwrap(); klass.add_pad_template(sink_pad_template); klass.install_properties(&PROPERTIES_SINK); @@ -1186,7 +1187,8 @@ impl ObjectSubclass for ProxySrc { gst::PadDirection::Src, gst::PadPresence::Always, &caps, - ); + ) + .unwrap(); klass.add_pad_template(src_pad_template); klass.install_properties(&PROPERTIES_SRC); diff --git a/gst-plugin-threadshare/src/queue.rs b/gst-plugin-threadshare/src/queue.rs index f0497c66..d4ec7709 100644 --- a/gst-plugin-threadshare/src/queue.rs +++ b/gst-plugin-threadshare/src/queue.rs @@ -774,7 +774,8 @@ impl ObjectSubclass for Queue { gst::PadDirection::Sink, gst::PadPresence::Always, &caps, - ); + ) + .unwrap(); klass.add_pad_template(sink_pad_template); let src_pad_template = gst::PadTemplate::new( @@ -782,7 +783,8 @@ impl ObjectSubclass for Queue { gst::PadDirection::Src, gst::PadPresence::Always, &caps, - ); + ) + .unwrap(); klass.add_pad_template(src_pad_template); klass.install_properties(&PROPERTIES); diff --git a/gst-plugin-threadshare/src/tcpclientsrc.rs b/gst-plugin-threadshare/src/tcpclientsrc.rs index 7ed553d7..916ac1bf 100644 --- a/gst-plugin-threadshare/src/tcpclientsrc.rs +++ b/gst-plugin-threadshare/src/tcpclientsrc.rs @@ -586,7 +586,8 @@ impl ObjectSubclass for TcpClientSrc { gst::PadDirection::Src, gst::PadPresence::Always, &caps, - ); + ) + .unwrap(); klass.add_pad_template(src_pad_template); klass.install_properties(&PROPERTIES); diff --git a/gst-plugin-threadshare/src/udpsrc.rs b/gst-plugin-threadshare/src/udpsrc.rs index 352e5485..6285c572 100644 --- a/gst-plugin-threadshare/src/udpsrc.rs +++ b/gst-plugin-threadshare/src/udpsrc.rs @@ -872,7 +872,8 @@ impl ObjectSubclass for UdpSrc { gst::PadDirection::Src, gst::PadPresence::Always, &caps, - ); + ) + .unwrap(); klass.add_pad_template(src_pad_template); klass.install_properties(&PROPERTIES); diff --git a/gst-plugin-togglerecord/src/togglerecord.rs b/gst-plugin-togglerecord/src/togglerecord.rs index 12a754bc..355e61f9 100644 --- a/gst-plugin-togglerecord/src/togglerecord.rs +++ b/gst-plugin-togglerecord/src/togglerecord.rs @@ -1192,7 +1192,8 @@ impl ObjectSubclass for ToggleRecord { gst::PadDirection::Src, gst::PadPresence::Always, &caps, - ); + ) + .unwrap(); klass.add_pad_template(src_pad_template); let sink_pad_template = gst::PadTemplate::new( @@ -1200,7 +1201,8 @@ impl ObjectSubclass for ToggleRecord { gst::PadDirection::Sink, gst::PadPresence::Always, &caps, - ); + ) + .unwrap(); klass.add_pad_template(sink_pad_template); let src_pad_template = gst::PadTemplate::new( @@ -1208,7 +1210,8 @@ impl ObjectSubclass for ToggleRecord { gst::PadDirection::Src, gst::PadPresence::Sometimes, &caps, - ); + ) + .unwrap(); klass.add_pad_template(src_pad_template); let sink_pad_template = gst::PadTemplate::new( @@ -1216,7 +1219,8 @@ impl ObjectSubclass for ToggleRecord { gst::PadDirection::Sink, gst::PadPresence::Request, &caps, - ); + ) + .unwrap(); klass.add_pad_template(sink_pad_template); } } diff --git a/gst-plugin-tutorial/src/identity.rs b/gst-plugin-tutorial/src/identity.rs index 4e86d46e..7fc2b956 100644 --- a/gst-plugin-tutorial/src/identity.rs +++ b/gst-plugin-tutorial/src/identity.rs @@ -220,7 +220,8 @@ impl ObjectSubclass for Identity { gst::PadDirection::Src, gst::PadPresence::Always, &caps, - ); + ) + .unwrap(); klass.add_pad_template(src_pad_template); let sink_pad_template = gst::PadTemplate::new( @@ -228,7 +229,8 @@ impl ObjectSubclass for Identity { gst::PadDirection::Sink, gst::PadPresence::Always, &caps, - ); + ) + .unwrap(); klass.add_pad_template(sink_pad_template); } } diff --git a/gst-plugin-tutorial/src/rgb2gray.rs b/gst-plugin-tutorial/src/rgb2gray.rs index 54e053c5..bd3b5b02 100644 --- a/gst-plugin-tutorial/src/rgb2gray.rs +++ b/gst-plugin-tutorial/src/rgb2gray.rs @@ -186,7 +186,8 @@ impl ObjectSubclass for Rgb2Gray { gst::PadDirection::Src, gst::PadPresence::Always, &caps, - ); + ) + .unwrap(); klass.add_pad_template(src_pad_template); // On the sink pad, we can accept BGRx of any @@ -213,7 +214,8 @@ impl ObjectSubclass for Rgb2Gray { gst::PadDirection::Sink, gst::PadPresence::Always, &caps, - ); + ) + .unwrap(); klass.add_pad_template(sink_pad_template); // Install all our properties diff --git a/gst-plugin-tutorial/src/sinesrc.rs b/gst-plugin-tutorial/src/sinesrc.rs index 285174d9..c004fe27 100644 --- a/gst-plugin-tutorial/src/sinesrc.rs +++ b/gst-plugin-tutorial/src/sinesrc.rs @@ -269,7 +269,8 @@ impl ObjectSubclass for SineSrc { gst::PadDirection::Src, gst::PadPresence::Always, &caps, - ); + ) + .unwrap(); klass.add_pad_template(src_pad_template); // Install all our properties