mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-28 03:45:39 +00:00
adaptivedemux2: Global output position is always positive
Change to non-signed GstClockTime for tracking Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3883>
This commit is contained in:
parent
e1a22402d3
commit
4e946890b2
2 changed files with 2 additions and 2 deletions
|
@ -140,7 +140,7 @@ struct _GstAdaptiveDemuxPrivate
|
|||
/* Current output selection seqnum */
|
||||
guint32 current_selection_seqnum;
|
||||
/* Current output position (in running time) */
|
||||
GstClockTimeDiff global_output_position;
|
||||
GstClockTime global_output_position;
|
||||
/* End of fields protected by output_lock */
|
||||
|
||||
gint n_audio_streams, n_video_streams, n_subtitle_streams;
|
||||
|
|
|
@ -3517,7 +3517,7 @@ restart:
|
|||
}
|
||||
|
||||
/* Store global output position */
|
||||
if (global_output_position != GST_CLOCK_STIME_NONE) {
|
||||
if (global_output_position >= 0) {
|
||||
demux->priv->global_output_position = global_output_position;
|
||||
|
||||
/* And see if any streams need to be woken for more input */
|
||||
|
|
Loading…
Reference in a new issue