mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-25 03:01:03 +00:00
rtpbasedepayload: Reject non-TIME segments
https://bugzilla.gnome.org/show_bug.cgi?id=765796
This commit is contained in:
parent
568ec0fc7b
commit
d84879db28
1 changed files with 9 additions and 1 deletions
|
@ -611,8 +611,16 @@ gst_rtp_base_depayload_handle_event (GstRTPBaseDepayload * filter,
|
|||
}
|
||||
case GST_EVENT_SEGMENT:
|
||||
{
|
||||
GstSegment segment;
|
||||
|
||||
GST_OBJECT_LOCK (filter);
|
||||
gst_event_copy_segment (event, &filter->segment);
|
||||
gst_event_copy_segment (event, &segment);
|
||||
|
||||
if (segment.format != GST_FORMAT_TIME) {
|
||||
GST_ERROR_OBJECT (filter, "Segment with non-TIME format not supported");
|
||||
res = FALSE;
|
||||
}
|
||||
filter->segment = segment;
|
||||
GST_OBJECT_UNLOCK (filter);
|
||||
|
||||
/* don't pass the event downstream, we generate our own segment including
|
||||
|
|
Loading…
Reference in a new issue