Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sdroege/gst-plugin-rs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/net/aws
diff options
context:
space:
mode:
authorSanchayan Maity <sanchayan@asymptotic.io>2023-02-03 16:34:02 +0300
committerSanchayan Maity <sanchayan@asymptotic.io>2023-02-03 16:38:40 +0300
commit41aa1e51da6a30118eff1a15ddf28cf7590fbc07 (patch)
tree2f2f7023ae9424c7eb71ca778e1c57d04beaf016 /net/aws
parent5506f8001e189f31730cfac579ef173e456f93e8 (diff)
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>
Diffstat (limited to 'net/aws')
-rw-r--r--net/aws/src/s3hlssink/imp.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/aws/src/s3hlssink/imp.rs b/net/aws/src/s3hlssink/imp.rs
index bcddd74f..7c90087a 100644
--- a/net/aws/src/s3hlssink/imp.rs
+++ b/net/aws/src/s3hlssink/imp.rs
@@ -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 {