mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
dashdemux: use signed integet to represent segment index
We need to be able to represent -1 to check when we are EOS on reverse playback and unsigned integer won't allow that. CID #1298193 CID #1298194 CID #1298195 https://bugzilla.gnome.org/show_bug.cgi?id=749534
This commit is contained in:
parent
f6cc8d13e0
commit
0910540d58
2 changed files with 3 additions and 3 deletions
|
@ -3898,7 +3898,7 @@ gst_mpd_client_get_next_fragment_duration (GstMpdClient * client,
|
|||
GstActiveStream * stream)
|
||||
{
|
||||
GstMediaSegment *media_segment = NULL;
|
||||
guint seg_idx;
|
||||
gint seg_idx;
|
||||
|
||||
g_return_val_if_fail (stream != NULL, 0);
|
||||
|
||||
|
@ -4251,7 +4251,7 @@ gst_mpd_client_get_next_segment_availability_end_time (GstMpdClient * client,
|
|||
GstActiveStream * stream)
|
||||
{
|
||||
GstDateTime *availability_start_time, *rv;
|
||||
guint seg_idx;
|
||||
gint seg_idx;
|
||||
GstClockTime seg_duration;
|
||||
gint64 offset;
|
||||
GstStreamPeriod *stream_period;
|
||||
|
|
|
@ -456,7 +456,7 @@ struct _GstActiveStream
|
|||
GstSegmentBaseType *cur_segment_base; /* active segment base */
|
||||
GstSegmentListNode *cur_segment_list; /* active segment list */
|
||||
GstSegmentTemplateNode *cur_seg_template; /* active segment template */
|
||||
guint segment_index; /* index of next sequence chunk */
|
||||
gint segment_index; /* index of next sequence chunk */
|
||||
guint segment_repeat_index; /* index of the repeat count of a segment */
|
||||
GPtrArray *segments; /* array of GstMediaSegment */
|
||||
GstClockTime presentationTimeOffset; /* presentation time offset of the current segment */
|
||||
|
|
Loading…
Reference in a new issue