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).
+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>
* gst/typefind/gsttypefindfunctions.c: (mpeg2_sys_type_find):
gst_query_set_duration (query, GST_FORMAT_TIME, ogg->total_time);
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:
res = gst_pad_query_default (pad, query);
break;