mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-27 02:30:35 +00:00
Revert "basertpdepayload: create valid segment when given non-time segment"
This reverts commit 0f609bc6c6
.
This commit is contained in:
parent
158eae7e7e
commit
568ec0fc7b
1 changed files with 2 additions and 8 deletions
|
@ -613,9 +613,6 @@ gst_rtp_base_depayload_handle_event (GstRTPBaseDepayload * filter,
|
||||||
{
|
{
|
||||||
GST_OBJECT_LOCK (filter);
|
GST_OBJECT_LOCK (filter);
|
||||||
gst_event_copy_segment (event, &filter->segment);
|
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);
|
GST_OBJECT_UNLOCK (filter);
|
||||||
|
|
||||||
/* don't pass the event downstream, we generate our own segment including
|
/* 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)
|
if (position == -1)
|
||||||
position = start;
|
position = start;
|
||||||
|
|
||||||
if (G_LIKELY (filter->segment.format == GST_FORMAT_TIME))
|
|
||||||
running_time = gst_segment_to_running_time (&filter->segment,
|
running_time = gst_segment_to_running_time (&filter->segment,
|
||||||
GST_FORMAT_TIME, start);
|
GST_FORMAT_TIME, start);
|
||||||
else
|
|
||||||
running_time = 0;
|
|
||||||
|
|
||||||
gst_segment_init (&segment, GST_FORMAT_TIME);
|
gst_segment_init (&segment, GST_FORMAT_TIME);
|
||||||
segment.rate = priv->play_speed;
|
segment.rate = priv->play_speed;
|
||||||
|
|
Loading…
Reference in a new issue