rtpbasedepayload: Mark GAP events sent because of packet loss as such

This allows downstream to distinguish packet loss from normal GAP events
that are sent simply because of gaps in the timeline.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/731>
This commit is contained in:
Mikhail Fludkov 2020-07-01 19:18:36 +03:00 committed by GStreamer Merge Bot
parent e77bea4968
commit d6a2569136

View file

@ -992,6 +992,7 @@ gst_rtp_base_depayload_packet_lost (GstRTPBaseDepayload * filter,
&might_have_been_fec) || !might_have_been_fec) {
/* send GAP event */
sevent = gst_event_new_gap (timestamp, duration);
gst_event_set_gap_flags (sevent, GST_GAP_FLAG_MISSING_DATA);
res = gst_pad_push_event (filter->srcpad, sevent);
}