mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-10-22 10:23:47 +00:00
ext/ogg/gstoggdemux.c: Some more chained streaming ogg timestamp fixes.
Original commit message from CVS: * ext/ogg/gstoggdemux.c: (gst_ogg_pad_submit_packet), (gst_ogg_demux_perform_seek), (gst_ogg_demux_handle_page): Some more chained streaming ogg timestamp fixes.
This commit is contained in:
parent
8b90454ed7
commit
f8f9935d74
2 changed files with 9 additions and 10 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2007-05-15 Wim Taymans <wim@fluendo.com>
|
||||||
|
|
||||||
|
* ext/ogg/gstoggdemux.c: (gst_ogg_pad_submit_packet),
|
||||||
|
(gst_ogg_demux_perform_seek), (gst_ogg_demux_handle_page):
|
||||||
|
Some more chained streaming ogg timestamp fixes.
|
||||||
|
|
||||||
2007-05-15 Wim Taymans <wim@fluendo.com>
|
2007-05-15 Wim Taymans <wim@fluendo.com>
|
||||||
|
|
||||||
* ext/ogg/gstoggdemux.c: (gst_ogg_pad_submit_packet),
|
* ext/ogg/gstoggdemux.c: (gst_ogg_pad_submit_packet),
|
||||||
|
|
|
@ -2759,19 +2759,12 @@ gst_ogg_demux_handle_page (GstOggDemux * ogg, ogg_page * page)
|
||||||
current_time = ogg->segment.last_stop;
|
current_time = ogg->segment.last_stop;
|
||||||
|
|
||||||
if (current_chain) {
|
if (current_chain) {
|
||||||
GstClockTime duration;
|
|
||||||
|
|
||||||
/* this was the duration of the previous chain */
|
|
||||||
duration = current_time - current_chain->segment_start;
|
|
||||||
/* the new chain time starts at duration + begin_time */
|
|
||||||
chain_time = duration + current_chain->begin_time;
|
|
||||||
|
|
||||||
/* remove existing pads */
|
/* remove existing pads */
|
||||||
gst_ogg_demux_deactivate_current_chain (ogg);
|
gst_ogg_demux_deactivate_current_chain (ogg);
|
||||||
} else {
|
|
||||||
/* non previous chain, start at configured current time */
|
|
||||||
chain_time = current_time;
|
|
||||||
}
|
}
|
||||||
|
/* time of new chain is current time */
|
||||||
|
chain_time = current_time;
|
||||||
|
|
||||||
if (ogg->building_chain == NULL) {
|
if (ogg->building_chain == NULL) {
|
||||||
GstOggChain *newchain;
|
GstOggChain *newchain;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue