summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2020-12-15 10:18:16 +0200
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>2020-12-21 10:18:05 +0000
commit9f42f941d7cc579813e45444e37de76290cebe69 (patch)
tree1da9d8de4f89c51bd0db46a635c2750a24074ea8
parent07c009dc802c4e506a05b183ff94632322419061 (diff)
rtspclientsink: Use proper types instead of G_TYPE_POINTER for the RTSP messages in the "handle-request" signal
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-rtsp-server/-/merge_requests/177>
-rw-r--r--docs/gst_plugins_cache.json4
-rw-r--r--gst/rtsp-sink/gstrtspclientsink.c4
2 files changed, 5 insertions, 3 deletions
diff --git a/docs/gst_plugins_cache.json b/docs/gst_plugins_cache.json
index a6cf43a..5d695dc 100644
--- a/docs/gst_plugins_cache.json
+++ b/docs/gst_plugins_cache.json
@@ -376,11 +376,11 @@
"args": [
{
"name": "arg0",
- "type": "gpointer"
+ "type": "GstRTSPMessage"
},
{
"name": "arg1",
- "type": "gpointer"
+ "type": "GstRTSPMessage"
}
],
"return-type": "void"
diff --git a/gst/rtsp-sink/gstrtspclientsink.c b/gst/rtsp-sink/gstrtspclientsink.c
index 1fbf2f6..c420e46 100644
--- a/gst/rtsp-sink/gstrtspclientsink.c
+++ b/gst/rtsp-sink/gstrtspclientsink.c
@@ -738,7 +738,9 @@ gst_rtsp_client_sink_class_init (GstRTSPClientSinkClass * klass)
*/
gst_rtsp_client_sink_signals[SIGNAL_HANDLE_REQUEST] =
g_signal_new ("handle-request", G_TYPE_FROM_CLASS (klass), 0,
- 0, NULL, NULL, NULL, G_TYPE_NONE, 2, G_TYPE_POINTER, G_TYPE_POINTER);
+ 0, NULL, NULL, NULL, G_TYPE_NONE, 2,
+ GST_TYPE_RTSP_MESSAGE | G_SIGNAL_TYPE_STATIC_SCOPE,
+ GST_TYPE_RTSP_MESSAGE | G_SIGNAL_TYPE_STATIC_SCOPE);
/**
* GstRTSPClientSink::new-manager: