mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 14:56:36 +00:00
rtsp-stream: Emit a signal when the SRTP decoder is created
https://bugzilla.gnome.org/show_bug.cgi?id=778080
This commit is contained in:
parent
4007050335
commit
4d25e04bd7
1 changed files with 10 additions and 0 deletions
|
@ -191,6 +191,7 @@ enum
|
|||
{
|
||||
SIGNAL_NEW_RTP_ENCODER,
|
||||
SIGNAL_NEW_RTCP_ENCODER,
|
||||
SIGNAL_NEW_RTP_RTCP_DECODER,
|
||||
SIGNAL_LAST
|
||||
};
|
||||
|
||||
|
@ -246,6 +247,11 @@ gst_rtsp_stream_class_init (GstRTSPStreamClass * klass)
|
|||
G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_generic,
|
||||
G_TYPE_NONE, 1, GST_TYPE_ELEMENT);
|
||||
|
||||
gst_rtsp_stream_signals[SIGNAL_NEW_RTP_RTCP_DECODER] =
|
||||
g_signal_new ("new-rtp-rtcp-decoder", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_generic,
|
||||
G_TYPE_NONE, 1, GST_TYPE_ELEMENT);
|
||||
|
||||
GST_DEBUG_CATEGORY_INIT (rtsp_stream_debug, "rtspstream", 0, "GstRTSPStream");
|
||||
|
||||
ssrc_stream_map_key = g_quark_from_static_string ("GstRTSPServer.stream");
|
||||
|
@ -2279,6 +2285,10 @@ request_rtp_rtcp_decoder (GstElement * rtpbin, guint session,
|
|||
|
||||
g_signal_connect (priv->srtpdec, "request-key",
|
||||
(GCallback) request_key, stream);
|
||||
|
||||
g_signal_emit (stream, gst_rtsp_stream_signals[SIGNAL_NEW_RTP_RTCP_DECODER],
|
||||
0, priv->srtpdec);
|
||||
|
||||
}
|
||||
return gst_object_ref (priv->srtpdec);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue