Commit cf602c23 authored by Tim-Philipp Müller's avatar Tim-Philipp Müller
Browse files

ext/ogg/gstoggdemux.c: Implement SEEKING query in its most basic form, so that...

ext/ogg/gstoggdemux.c: Implement SEEKING query in its most basic form, so that we can at least check if we're seekabl...

Original commit message from CVS:
* ext/ogg/gstoggdemux.c: (gst_ogg_pad_src_query):
Implement SEEKING query in its most basic form, so that we can
at least check if we're seekable or not (#350655).
parent 7b292da6
2006-08-10 Tim-Philipp Müller <tim at centricular dot net>
* ext/ogg/gstoggdemux.c: (gst_ogg_pad_src_query):
Implement SEEKING query in its most basic form, so that we can
at least check if we're seekable or not (#350655).
2006-08-09 Tim-Philipp Müller <tim at centricular dot net> 2006-08-09 Tim-Philipp Müller <tim at centricular dot net>
   
* gst/typefind/gsttypefindfunctions.c: (mpeg2_sys_type_find): * gst/typefind/gsttypefindfunctions.c: (mpeg2_sys_type_find):
......
...@@ -416,6 +416,20 @@ gst_ogg_pad_src_query (GstPad * pad, GstQuery * query) ...@@ -416,6 +416,20 @@ gst_ogg_pad_src_query (GstPad * pad, GstQuery * query)
gst_query_set_duration (query, GST_FORMAT_TIME, ogg->total_time); gst_query_set_duration (query, GST_FORMAT_TIME, ogg->total_time);
break; break;
} }
case GST_QUERY_SEEKING:
{
GstFormat format;
gst_query_parse_seeking (query, &format, NULL, NULL, NULL);
if (format == GST_FORMAT_TIME) {
gst_query_set_seeking (query, GST_FORMAT_TIME, ogg->seekable,
0, ogg->total_time);
} else {
res = FALSE;
}
break;
}
default: default:
res = gst_pad_query_default (pad, query); res = gst_pad_query_default (pad, query);
break; break;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment