mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-02 04:22:27 +00:00
rtpsrc: drop stream-start & eos messages posted from the internal udp sink(s)
See #1368 Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1472>
This commit is contained in:
parent
d8b37973d2
commit
914161f902
1 changed files with 18 additions and 0 deletions
|
@ -292,16 +292,34 @@ gst_rtp_src_finalize (GObject * gobject)
|
|||
G_OBJECT_CLASS (parent_class)->finalize (gobject);
|
||||
}
|
||||
|
||||
static void
|
||||
gst_rtp_src_handle_message (GstBin * bin, GstMessage * message)
|
||||
{
|
||||
switch (GST_MESSAGE_TYPE (message)) {
|
||||
case GST_MESSAGE_STREAM_START:
|
||||
case GST_MESSAGE_EOS:
|
||||
/* drop stream-start & eos from our internal udp sink(s);
|
||||
https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/issues/1368 */
|
||||
gst_message_unref (message);
|
||||
break;
|
||||
default:
|
||||
GST_BIN_CLASS (parent_class)->handle_message (bin, message);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
gst_rtp_src_class_init (GstRtpSrcClass * klass)
|
||||
{
|
||||
GObjectClass *gobject_class = G_OBJECT_CLASS (klass);
|
||||
GstElementClass *gstelement_class = GST_ELEMENT_CLASS (klass);
|
||||
GstBinClass *gstbin_class = GST_BIN_CLASS (klass);
|
||||
|
||||
gobject_class->set_property = gst_rtp_src_set_property;
|
||||
gobject_class->get_property = gst_rtp_src_get_property;
|
||||
gobject_class->finalize = gst_rtp_src_finalize;
|
||||
gstelement_class->change_state = gst_rtp_src_change_state;
|
||||
gstbin_class->handle_message = gst_rtp_src_handle_message;
|
||||
|
||||
/**
|
||||
* GstRtpSrc:uri:
|
||||
|
|
Loading…
Reference in a new issue