From ad3f1cf534b475d47d4ef4d0e8916d507c6e56e5 Mon Sep 17 00:00:00 2001 From: Arun Raghavan Date: Tue, 24 Jan 2023 13:02:14 -0500 Subject: [PATCH] aws: s3hlssink: Fix the name of the hlssink child element It's easier to set child element properties if the name doesn't depend on the factory. Part-of: --- net/aws/src/s3hlssink/imp.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/aws/src/s3hlssink/imp.rs b/net/aws/src/s3hlssink/imp.rs index 55efa0d5..24dea089 100644 --- a/net/aws/src/s3hlssink/imp.rs +++ b/net/aws/src/s3hlssink/imp.rs @@ -438,12 +438,12 @@ impl ObjectSubclass for S3HlsSink { fn with_class(_klass: &Self::Class) -> Self { /* Prefer hlssink3 here due to it's support for media playlist types */ let hlssink = match gst::ElementFactory::make("hlssink3") - .name("hlssink3") + .name("hlssink") .build() { Ok(element) => element, Err(_) => gst::ElementFactory::make("hlssink2") - .name("hlssink2") + .name("hlssink") .build() .expect("Could not find hlssink2. Need hlssink2 or hlssink3."), };