diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.com> | 2020-06-11 13:45:15 +0300 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.com> | 2020-06-11 14:07:01 +0300 |
commit | e85799b9d6ba89e3f3e76a5d092bc7145121af03 (patch) | |
tree | fd7a55babaeee17f4db46bbf04585566cecf02fe /utils/fallbackswitch/src/fallbackswitch.rs | |
parent | ed4fa7fde40506888947dadb5632b880fc7aaba6 (diff) |
use new constructor names
Diffstat (limited to 'utils/fallbackswitch/src/fallbackswitch.rs')
-rw-r--r-- | utils/fallbackswitch/src/fallbackswitch.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/utils/fallbackswitch/src/fallbackswitch.rs b/utils/fallbackswitch/src/fallbackswitch.rs index 5f41ec169..36c4c1e5f 100644 --- a/utils/fallbackswitch/src/fallbackswitch.rs +++ b/utils/fallbackswitch/src/fallbackswitch.rs @@ -392,7 +392,7 @@ impl ObjectSubclass for FallbackSwitch { ); let caps = gst::Caps::new_any(); - let src_pad_template = gst::PadTemplate::new_with_gtype( + let src_pad_template = gst::PadTemplate::with_gtype( "src", gst::PadDirection::Src, gst::PadPresence::Always, @@ -402,7 +402,7 @@ impl ObjectSubclass for FallbackSwitch { .unwrap(); klass.add_pad_template(src_pad_template); - let sink_pad_template = gst::PadTemplate::new_with_gtype( + let sink_pad_template = gst::PadTemplate::with_gtype( "sink", gst::PadDirection::Sink, gst::PadPresence::Always, @@ -412,7 +412,7 @@ impl ObjectSubclass for FallbackSwitch { .unwrap(); klass.add_pad_template(sink_pad_template); - let fallbacksink_pad_template = gst::PadTemplate::new_with_gtype( + let fallbacksink_pad_template = gst::PadTemplate::with_gtype( "fallback_sink", gst::PadDirection::Sink, gst::PadPresence::Request, |