if (format != GST_FORMAT_TIME)
goto wrong_format;
- if (ogg->seekable) {
- /* we must return the total seekable length */
+ if (ogg->pullmode) {
+ /* we must return the total length */
total_time = ogg->total_time;
} else {
- /* in non-seek mode we can answer the query and we must return -1 */
+ /* in push mode we can answer the query and we must return -1 */
total_time = -1;
}
gst_query_parse_seeking (query, &format, NULL, NULL, NULL);
if (format == GST_FORMAT_TIME) {
- gst_query_set_seeking (query, GST_FORMAT_TIME, ogg->seekable,
+ gst_query_set_seeking (query, GST_FORMAT_TIME, ogg->pullmode,
0, ogg->total_time);
} else {
res = FALSE;
switch (GST_EVENT_TYPE (event)) {
case GST_EVENT_SEEK:
- /* can't seek if we are not seekable, FIXME could pass the
+ /* can't seek if we are not pullmode, FIXME could pass the
* seek query upstream after converting it to bytes using
* the average bitrate of the stream. */
- if (!ogg->seekable) {
- GST_DEBUG_OBJECT (ogg, "seek on non seekable stream");
+ if (!ogg->pullmode) {
+ GST_DEBUG_OBJECT (ogg, "seek on pull mode stream not implemented yet");
goto error;
}
switch (GST_EVENT_TYPE (event)) {
case GST_EVENT_SEEK:
- /* can't seek if we are not seekable, FIXME could pass the
+ /* can't seek if we are not pullmode, FIXME could pass the
* seek query upstream after converting it to bytes using
* the average bitrate of the stream. */
- if (!ogg->seekable) {
- GST_DEBUG_OBJECT (ogg, "seek on non seekable stream");
+ if (!ogg->pullmode) {
+ GST_DEBUG_OBJECT (ogg, "seek on pull mode stream not implemented yet");
goto error;
}
}
/* if we cannot seek back to the chain, we can destroy the chain
* completely */
- if (!ogg->seekable) {
+ if (!ogg->pullmode) {
gst_ogg_chain_free (chain);
}
ogg->current_chain = NULL;
GstOggChain *current_chain;
gint64 current_time;
- /* this can only happen in non-seekabe mode */
- if (ogg->seekable)
+ /* this can only happen in push mode */
+ if (ogg->pullmode)
goto unknown_chain;
current_chain = ogg->current_chain;
ogg = GST_OGG_DEMUX (GST_OBJECT_PARENT (sinkpad));
- ogg->seekable = FALSE;
+ ogg->pullmode = FALSE;
return TRUE;
}
if (active) {
ogg->need_chains = TRUE;
- ogg->seekable = TRUE;
+ ogg->pullmode = TRUE;
return gst_pad_start_task (sinkpad, (GstTaskFunction) gst_ogg_demux_loop,
sinkpad);