mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-01 14:11:15 +00:00
oggdemux: Update the total time from the Skeleton 4 indexes
Fixes bug #620939, see bug #607945.
This commit is contained in:
parent
7bade30f5e
commit
bb7773b40a
1 changed files with 7 additions and 0 deletions
|
@ -768,6 +768,13 @@ gst_ogg_pad_submit_packet (GstOggPad * pad, ogg_packet * packet)
|
||||||
case GST_OGG_SKELETON_INDEX:
|
case GST_OGG_SKELETON_INDEX:
|
||||||
gst_ogg_map_add_index (&skel_pad->map, &pad->map, packet->packet,
|
gst_ogg_map_add_index (&skel_pad->map, &pad->map, packet->packet,
|
||||||
packet->bytes);
|
packet->bytes);
|
||||||
|
|
||||||
|
/* use total time to update the total ogg time */
|
||||||
|
if (ogg->total_time == -1) {
|
||||||
|
ogg->total_time = skel_pad->map.total_time;
|
||||||
|
} else if (skel_pad->map.total_time > 0) {
|
||||||
|
ogg->total_time = MAX (ogg->total_time, skel_pad->map.total_time);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue