rtspsrc: Fix more signals

Behaviour change in GLib causes select-stream signal to discard
the value returned by handlers. See !909 for more info.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/912>
This commit is contained in:
Alba Mendez 2021-03-18 17:42:02 +00:00 committed by GStreamer Marge Bot
parent 612102fdbc
commit 20e80f1473
2 changed files with 4 additions and 5 deletions

View file

@ -20267,7 +20267,7 @@
}
],
"return-type": "gboolean",
"when": "first"
"when": "last"
},
"set-parameter": {
"action": true,

View file

@ -1062,7 +1062,7 @@ gst_rtspsrc_class_init (GstRTSPSrcClass * klass)
*/
gst_rtspsrc_signals[SIGNAL_SELECT_STREAM] =
g_signal_new_class_handler ("select-stream", G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_FIRST | G_SIGNAL_RUN_CLEANUP,
G_SIGNAL_RUN_LAST,
(GCallback) default_select_stream, select_stream_accum, NULL, NULL,
G_TYPE_BOOLEAN, 2, G_TYPE_UINT, GST_TYPE_CAPS);
/**
@ -1077,8 +1077,7 @@ gst_rtspsrc_class_init (GstRTSPSrcClass * klass)
*/
gst_rtspsrc_signals[SIGNAL_NEW_MANAGER] =
g_signal_new_class_handler ("new-manager", G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_FIRST | G_SIGNAL_RUN_CLEANUP, 0, NULL, NULL, NULL,
G_TYPE_NONE, 1, GST_TYPE_ELEMENT);
0, 0, NULL, NULL, NULL, G_TYPE_NONE, 1, GST_TYPE_ELEMENT);
/**
* GstRTSPSrc::request-rtcp-key:
@ -1093,7 +1092,7 @@ gst_rtspsrc_class_init (GstRTSPSrcClass * klass)
*/
gst_rtspsrc_signals[SIGNAL_REQUEST_RTCP_KEY] =
g_signal_new ("request-rtcp-key", G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST, 0, NULL, NULL, NULL, GST_TYPE_CAPS, 1, G_TYPE_UINT);
0, 0, NULL, NULL, NULL, GST_TYPE_CAPS, 1, G_TYPE_UINT);
/**
* GstRTSPSrc::accept-certificate: