Commit d6be6726 authored by Sebastian Dröge's avatar Sebastian Dröge

rtpbasedepayload: Check if the packet loss event actually has timestamp and duration fields

CID 1139615
parent f5a3f705
......@@ -864,8 +864,12 @@ gst_rtp_base_depayload_packet_lost (GstRTPBaseDepayload * filter,
timestamp = -1;
duration = -1;
gst_structure_get_clock_time (s, "timestamp", &timestamp);
gst_structure_get_clock_time (s, "duration", &duration);
if (!gst_structure_get_clock_time (s, "timestamp", &timestamp) ||
!gst_structure_get_clock_time (s, "duration", &duration)) {
"Packet loss event without timestamp or duration");
return FALSE;
/* send GAP event */
sevent = gst_event_new_gap (timestamp, duration);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment