mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-25 03:01:03 +00:00
rtpbasedepayload: Check if the packet loss event actually has timestamp and duration fields
CID 1139615
This commit is contained in:
parent
f5a3f70571
commit
d6be67265f
1 changed files with 6 additions and 2 deletions
|
@ -864,8 +864,12 @@ gst_rtp_base_depayload_packet_lost (GstRTPBaseDepayload * filter,
|
|||
timestamp = -1;
|
||||
duration = -1;
|
||||
|
||||
gst_structure_get_clock_time (s, "timestamp", ×tamp);
|
||||
gst_structure_get_clock_time (s, "duration", &duration);
|
||||
if (!gst_structure_get_clock_time (s, "timestamp", ×tamp) ||
|
||||
!gst_structure_get_clock_time (s, "duration", &duration)) {
|
||||
GST_ERROR_OBJECT (filter,
|
||||
"Packet loss event without timestamp or duration");
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
/* send GAP event */
|
||||
sevent = gst_event_new_gap (timestamp, duration);
|
||||
|
|
Loading…
Reference in a new issue