From 9f42f941d7cc579813e45444e37de76290cebe69 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 15 Dec 2020 10:18:16 +0200 Subject: [PATCH] rtspclientsink: Use proper types instead of G_TYPE_POINTER for the RTSP messages in the "handle-request" signal Part-of: --- docs/gst_plugins_cache.json | 4 ++-- gst/rtsp-sink/gstrtspclientsink.c | 4 +++- 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: -- 2.7.4