From 568ec0fc7bc594a38b59829ac6c9594b94bed137 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 1 Nov 2016 21:09:04 +0200 Subject: [PATCH] Revert "basertpdepayload: create valid segment when given non-time segment" This reverts commit 0f609bc6c67fea294f4556627228fed72a74d0fb. --- gst-libs/gst/rtp/gstrtpbasedepayload.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/gst-libs/gst/rtp/gstrtpbasedepayload.c b/gst-libs/gst/rtp/gstrtpbasedepayload.c index dd490a488a..1fdb0b3c4a 100644 --- a/gst-libs/gst/rtp/gstrtpbasedepayload.c +++ b/gst-libs/gst/rtp/gstrtpbasedepayload.c @@ -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; + running_time = gst_segment_to_running_time (&filter->segment, + GST_FORMAT_TIME, start); gst_segment_init (&segment, GST_FORMAT_TIME); segment.rate = priv->play_speed;