oggdemux: update some comments that refer to internal decoders
We don't do that any more, we now have stream mappers for this.
This commit is contained in:
parent
882ffc7b98
commit
756625edd2
@ -765,9 +765,8 @@ gst_ogg_demux_collect_sync_time (GstOggDemux * ogg, GstOggChain * chain)
|
|||||||
return sync_time;
|
return sync_time;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* submit a packet to the oggpad, this function will run the
|
/* submit a packet to the oggpad, this function will run the type detection
|
||||||
* typefind code for the pad if this is the first packet for this
|
* code for the pad if this is the first packet for this stream
|
||||||
* stream
|
|
||||||
*/
|
*/
|
||||||
static GstFlowReturn
|
static GstFlowReturn
|
||||||
gst_ogg_pad_submit_packet (GstOggPad * pad, ogg_packet * packet)
|
gst_ogg_pad_submit_packet (GstOggPad * pad, ogg_packet * packet)
|
||||||
@ -3569,9 +3568,8 @@ done:
|
|||||||
* structure with the results.
|
* structure with the results.
|
||||||
*
|
*
|
||||||
* This function will also read N pages from each stream in the
|
* This function will also read N pages from each stream in the
|
||||||
* chain and submit them to the decoders. When the decoder has
|
* chain and submit them to the internal ogg stream parser/mapper
|
||||||
* decoded the first buffer, we know the timestamp of the first
|
* until we know the timestamp of the first page in the chain.
|
||||||
* page in the chain.
|
|
||||||
*/
|
*/
|
||||||
static GstFlowReturn
|
static GstFlowReturn
|
||||||
gst_ogg_demux_read_chain (GstOggDemux * ogg, GstOggChain ** res_chain)
|
gst_ogg_demux_read_chain (GstOggDemux * ogg, GstOggChain ** res_chain)
|
||||||
@ -3585,8 +3583,8 @@ gst_ogg_demux_read_chain (GstOggDemux * ogg, GstOggChain ** res_chain)
|
|||||||
|
|
||||||
GST_LOG_OBJECT (ogg, "reading chain at %" G_GINT64_FORMAT, offset);
|
GST_LOG_OBJECT (ogg, "reading chain at %" G_GINT64_FORMAT, offset);
|
||||||
|
|
||||||
/* first read the BOS pages, do typefind on them, create
|
/* first read the BOS pages, detect the stream types, create the internal
|
||||||
* the decoders, send data to the decoders. */
|
* stream mappers, send data to them. */
|
||||||
while (TRUE) {
|
while (TRUE) {
|
||||||
GstOggPad *pad;
|
GstOggPad *pad;
|
||||||
guint32 serial;
|
guint32 serial;
|
||||||
@ -3645,11 +3643,10 @@ gst_ogg_demux_read_chain (GstOggDemux * ogg, GstOggChain ** res_chain)
|
|||||||
}
|
}
|
||||||
|
|
||||||
chain->have_bos = TRUE;
|
chain->have_bos = TRUE;
|
||||||
GST_LOG_OBJECT (ogg, "read bos pages, init decoder now");
|
GST_INFO_OBJECT (ogg, "read bos pages, ");
|
||||||
|
|
||||||
/* now read pages until we receive a buffer from each of the
|
/* now read pages until each ogg stream mapper has figured out the
|
||||||
* stream decoders, this will tell us the timestamp of the
|
* timestamp of the first packet in the chain */
|
||||||
* first packet in the chain then */
|
|
||||||
|
|
||||||
/* save the offset to the first non bos page in the chain: if searching for
|
/* save the offset to the first non bos page in the chain: if searching for
|
||||||
* pad->first_time we read past the end of the chain, we'll seek back to this
|
* pad->first_time we read past the end of the chain, we'll seek back to this
|
||||||
@ -3676,7 +3673,7 @@ gst_ogg_demux_read_chain (GstOggDemux * ogg, GstOggChain ** res_chain)
|
|||||||
known_serial = TRUE;
|
known_serial = TRUE;
|
||||||
|
|
||||||
/* submit the page now, this will fill in the start_time when the
|
/* submit the page now, this will fill in the start_time when the
|
||||||
* internal decoder finds it */
|
* internal stream mapper finds it */
|
||||||
gst_ogg_pad_submit_page (pad, &og);
|
gst_ogg_pad_submit_page (pad, &og);
|
||||||
|
|
||||||
if (!pad->map.is_skeleton && pad->start_time == -1
|
if (!pad->map.is_skeleton && pad->start_time == -1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user