diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2020-12-15 11:36:27 +0200 |
---|---|---|
committer | GStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org> | 2020-12-21 09:59:43 +0000 |
commit | 39c6bc0507554098181baeb01f7cb53718c81bd6 (patch) | |
tree | edf842043893a9b96ec55efb0e1f87f32771662a | |
parent | 81d2f67ba5e926d864f711338eb0e78a0e2a1fdb (diff) | |
download | gstreamer-plugins-good-39c6bc0507554098181baeb01f7cb53718c81bd6.tar.gz |
rtspsrc: 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-plugins-good/-/merge_requests/842>
-rw-r--r-- | docs/gst_plugins_cache.json | 4 | ||||
-rw-r--r-- | 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 39017ab3a..11d55b950 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 5f9f0febf..dd871c975 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: |