mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-31 03:29:50 +00:00
segment: don't use duration in clipping
Don't use the duration in the segment for calculating clipping values. The duration is expressed in stream time and clipping is done on unrelated timestamp values. This used to be interesting for elements that used the segment structure to implement seeking because then they would use stream-time for the segment start/stop values and the duration could be used as a fallback when the stop position was not set. Now that the complete segment event is passed between elements we cannot do this anymore because some elements might store the duration and start/stop values with different time bases in the segment.
This commit is contained in:
parent
3eeb6e6c05
commit
afba547722
1 changed files with 0 additions and 3 deletions
|
@ -562,9 +562,6 @@ gst_segment_clip (const GstSegment * segment, GstFormat format, guint64 start,
|
|||
*clip_stop = stop;
|
||||
else
|
||||
*clip_stop = MIN (stop, segment->stop);
|
||||
|
||||
if (segment->duration != -1 && *clip_stop != -1)
|
||||
*clip_stop = MIN (*clip_stop, segment->duration);
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
|
|
Loading…
Reference in a new issue