mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-03 05:59:10 +00:00
ext/ogg/gstoggmux.c: If our incoming buffer is marked as DISCONT, then increment the page number (so that the discont...
Original commit message from CVS: * ext/ogg/gstoggmux.c: (gst_ogg_mux_process_best_pad): If our incoming buffer is marked as DISCONT, then increment the page number (so that the discontinuity is marked in the final ogg bitstream) and flush the previous page.
This commit is contained in:
parent
32500268de
commit
e58d5a5515
2 changed files with 14 additions and 0 deletions
|
@ -1,3 +1,10 @@
|
|||
2006-11-23 Michael Smith <msmith@fluendo.com>
|
||||
|
||||
* ext/ogg/gstoggmux.c: (gst_ogg_mux_process_best_pad):
|
||||
If our incoming buffer is marked as DISCONT, then increment the page
|
||||
number (so that the discontinuity is marked in the final ogg
|
||||
bitstream) and flush the previous page.
|
||||
|
||||
2006-11-22 Michael Smith <msmith@fluendo.com>
|
||||
|
||||
* ext/theora/gsttheoraenc.h:
|
||||
|
|
|
@ -1334,6 +1334,13 @@ gst_ogg_mux_process_best_pad (GstOggMux * ogg_mux, GstOggPad * best)
|
|||
}
|
||||
}
|
||||
|
||||
if (GST_BUFFER_IS_DISCONT (buf)) {
|
||||
packet.packetno++;
|
||||
/* No public API for this; hack things in */
|
||||
pad->stream.pageno++;
|
||||
force_flush = TRUE;
|
||||
}
|
||||
|
||||
/* flush the currently built page if necessary */
|
||||
if (force_flush) {
|
||||
GST_LOG_OBJECT (pad->collect.pad,
|
||||
|
|
Loading…
Reference in a new issue