From 39e0acb55ab912f1d00c583b44b8e99c0c97ab0b Mon Sep 17 00:00:00 2001 From: Arun Raghavan Date: Fri, 10 Feb 2023 10:37:44 -0500 Subject: [PATCH] hlssink3: Fix case on unspecified playlist type nick for consistency Part-of: --- docs/plugins/gst_plugins_cache.json | 4 ++-- net/hlssink3/src/lib.rs | 2 +- net/hlssink3/tests/hlssink3.rs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/plugins/gst_plugins_cache.json b/docs/plugins/gst_plugins_cache.json index cc987c32..31c38301 100644 --- a/docs/plugins/gst_plugins_cache.json +++ b/docs/plugins/gst_plugins_cache.json @@ -2147,7 +2147,7 @@ "construct": false, "construct-only": false, "controllable": false, - "default": "Unspecified (0)", + "default": "unspecified (0)", "mutable": "null", "readable": true, "type": "GstHlsSink3PlaylistType", @@ -2223,7 +2223,7 @@ "values": [ { "desc": "Unspecified: The tag `#EXT-X-PLAYLIST-TYPE` won't be present in the playlist during the pipeline processing.", - "name": "Unspecified", + "name": "unspecified", "value": "0" }, { diff --git a/net/hlssink3/src/lib.rs b/net/hlssink3/src/lib.rs index ecd25f00..4c38ffd5 100644 --- a/net/hlssink3/src/lib.rs +++ b/net/hlssink3/src/lib.rs @@ -26,7 +26,7 @@ mod playlist; pub enum HlsSink3PlaylistType { #[enum_value( name = "Unspecified: The tag `#EXT-X-PLAYLIST-TYPE` won't be present in the playlist during the pipeline processing.", - nick = "Unspecified" + nick = "unspecified" )] Unspecified = 0, diff --git a/net/hlssink3/tests/hlssink3.rs b/net/hlssink3/tests/hlssink3.rs index e218b636..e921829a 100644 --- a/net/hlssink3/tests/hlssink3.rs +++ b/net/hlssink3/tests/hlssink3.rs @@ -126,7 +126,7 @@ fn test_hlssink3_element_with_video_content() -> Result<(), ()> { let pl_type: HlsSink3PlaylistType = hlssink3.property("playlist-type"); assert_eq!(pl_type, HlsSink3PlaylistType::Event); - hlssink3.set_property_from_str("playlist-type", "Unspecified"); + hlssink3.set_property_from_str("playlist-type", "unspecified"); let (hls_events_sender, hls_events_receiver) = mpsc::sync_channel(20); let playlist_content = Arc::new(Mutex::new(String::from("")));