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:
Edward Hervey 2022-12-08 08:17:56 +01:00 committed by GStreamer Marge Bot
parent e1a22402d3
commit 4e946890b2
2 changed files with 2 additions and 2 deletions

View file

@ -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;

View file

@ -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 */