mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 18:51:11 +00:00
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:
parent
e77bea4968
commit
d6a2569136
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue