Revert "basertpdepayload: create valid segment when given non-time segment"

This reverts commit 0f609bc6c6.
This commit is contained in:
Sebastian Dröge 2016-11-01 21:09:04 +02:00
parent 158eae7e7e
commit 568ec0fc7b

View file

@ -613,9 +613,6 @@ gst_rtp_base_depayload_handle_event (GstRTPBaseDepayload * filter,
{
GST_OBJECT_LOCK (filter);
gst_event_copy_segment (event, &filter->segment);
if (filter->segment.format != GST_FORMAT_TIME)
GST_ERROR_OBJECT (filter,
"Non-TIME segments are not supported and will likely fail");
GST_OBJECT_UNLOCK (filter);
/* don't pass the event downstream, we generate our own segment including
@ -720,11 +717,8 @@ create_segment_event (GstRTPBaseDepayload * filter, guint rtptime,
if (position == -1)
position = start;
if (G_LIKELY (filter->segment.format == GST_FORMAT_TIME))
running_time = gst_segment_to_running_time (&filter->segment,
GST_FORMAT_TIME, start);
else
running_time = 0;
gst_segment_init (&segment, GST_FORMAT_TIME);
segment.rate = priv->play_speed;