mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-12-23 02:26:35 +00:00
aws/s3hlssink: Use factory name when checking name of child element
Commit ad3f1cf
fixed the name of hlssink child element to be the same
for hlssink2 and hlssink3. However, we rely on element name to return
boolean in case of hlssink3 or None in case of hlssink2 as the return
value of the delete-fragment closure.
Fix this by using the factory name instead of the element name.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1076>
This commit is contained in:
parent
5506f8001e
commit
41aa1e51da
1 changed files with 1 additions and 1 deletions
|
@ -735,7 +735,7 @@ impl ObjectImpl for S3HlsSink {
|
|||
|
||||
// The signature on delete-fragment signal is different for
|
||||
// hlssink2 and hlssink3.
|
||||
if self_.hlssink.name().contains("hlssink3") {
|
||||
if self_.hlssink.factory().unwrap().name().contains("hlssink3") {
|
||||
if res.is_ok() {
|
||||
Some(true.to_value())
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue