From 39c6bc0507554098181baeb01f7cb53718c81bd6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 15 Dec 2020 11:36:27 +0200 Subject: [PATCH] rtspsrc: 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/gstrtspsrc.c | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/gst_plugins_cache.json b/docs/gst_plugins_cache.json index 39017ab3a2..11d55b950a 100644 --- a/docs/gst_plugins_cache.json +++ b/docs/gst_plugins_cache.json @@ -20123,11 +20123,11 @@ "args": [ { "name": "arg0", - "type": "gpointer" + "type": "GstRTSPMessage" }, { "name": "arg1", - "type": "gpointer" + "type": "GstRTSPMessage" } ], "return-type": "void" diff --git a/gst/rtsp/gstrtspsrc.c b/gst/rtsp/gstrtspsrc.c index 5f9f0febff..dd871c975b 100644 --- a/gst/rtsp/gstrtspsrc.c +++ b/gst/rtsp/gstrtspsrc.c @@ -1013,7 +1013,9 @@ gst_rtspsrc_class_init (GstRTSPSrcClass * klass) */ gst_rtspsrc_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); /** * GstRTSPSrc::on-sdp: