mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-12-23 02:26:35 +00:00
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: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1061>
This commit is contained in:
parent
ee8249eec7
commit
ad3f1cf534
1 changed files with 2 additions and 2 deletions
|
@ -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."),
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue