From 8c37eea410749db2feef81b186ff9d905961751d Mon Sep 17 00:00:00 2001 From: Nazar Mokrynskyi Date: Tue, 18 Aug 2020 19:16:40 +0300 Subject: [PATCH] rtmp2: fix code style, update documentation cache Part-of: --- docs/plugins/gst_plugins_cache.json | 37 +++++++++++++++++++++++++++++ gst/rtmp2/gstrtmp2sink.c | 2 +- 2 files changed, 38 insertions(+), 1 deletion(-) diff --git a/docs/plugins/gst_plugins_cache.json b/docs/plugins/gst_plugins_cache.json index 4c555632cb..ecda85becf 100644 --- a/docs/plugins/gst_plugins_cache.json +++ b/docs/plugins/gst_plugins_cache.json @@ -216290,6 +216290,18 @@ "readable": true, "type": "GstStructure", "writable": false + }, + "stop-commands": { + "blurb": "RTMP commands to send on EOS event before closing connection", + "conditionally-available": false, + "construct": false, + "construct-only": false, + "controllable": false, + "default": "deletestream+fcunpublish", + "mutable": "null", + "readable": true, + "type": "GstRtmpStopCommands", + "writable": true } }, "rank": "primary + 1" @@ -216568,6 +216580,31 @@ "value": "1" } ] + }, + "GstRtmpStopCommands": { + "kind": "flags", + "values": [ + { + "desc": "No command", + "name": "none", + "value": "0x00000000" + }, + { + "desc": "FCUnpublish", + "name": "fcunpublish", + "value": "0x00000001" + }, + { + "desc": "closeStream", + "name": "closestream", + "value": "0x00000002" + }, + { + "desc": "deleteStream", + "name": "deletestream", + "value": "0x00000004" + } + ] } }, "package": "GStreamer Bad Plug-ins", diff --git a/gst/rtmp2/gstrtmp2sink.c b/gst/rtmp2/gstrtmp2sink.c index 25485898da..676ce3783e 100644 --- a/gst/rtmp2/gstrtmp2sink.c +++ b/gst/rtmp2/gstrtmp2sink.c @@ -615,7 +615,7 @@ gst_rtmp2_sink_event (GstBaseSink * sink, GstEvent * event) break; } - return GST_BASE_SINK_CLASS (gst_rtmp2_sink_parent_class)->event (sink, event);; + return GST_BASE_SINK_CLASS (gst_rtmp2_sink_parent_class)->event (sink, event); } static gboolean