mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 01:30:38 +00:00
oggdemux: do not propagate discontinuities in sparse streams
The first packet of a sparse stream may arrive after an initial delay in the stream. If ogg_stream_packetout reports a discontinuity in a sparse stream, do not propagate it to other streams in the chain unnecessarily. https://bugzilla.gnome.org/show_bug.cgi?id=621897
This commit is contained in:
parent
8f8ad316ce
commit
6704b37fc3
1 changed files with 6 additions and 1 deletions
|
@ -101,6 +101,7 @@ static gboolean gst_ogg_demux_collect_chain_info (GstOggDemux * ogg,
|
|||
GstOggChain * chain);
|
||||
static gboolean gst_ogg_demux_activate_chain (GstOggDemux * ogg,
|
||||
GstOggChain * chain, GstEvent * event);
|
||||
static void gst_ogg_pad_mark_discont (GstOggPad * pad);
|
||||
static void gst_ogg_chain_mark_discont (GstOggChain * chain);
|
||||
|
||||
static gboolean gst_ogg_demux_perform_seek (GstOggDemux * ogg,
|
||||
|
@ -959,7 +960,11 @@ gst_ogg_pad_stream_out (GstOggPad * pad, gint npackets)
|
|||
break;
|
||||
case -1:
|
||||
GST_LOG_OBJECT (ogg, "packetout discont");
|
||||
gst_ogg_chain_mark_discont (pad->chain);
|
||||
if (!pad->map.is_sparse) {
|
||||
gst_ogg_chain_mark_discont (pad->chain);
|
||||
} else {
|
||||
gst_ogg_pad_mark_discont (pad);
|
||||
}
|
||||
break;
|
||||
case 1:
|
||||
GST_LOG_OBJECT (ogg, "packetout gave packet of size %ld", packet.bytes);
|
||||
|
|
Loading…
Reference in a new issue