matroskademux: Answer SEEKING queries in the original format

This commit is contained in:
Sebastian Dröge 2009-07-21 07:50:46 +02:00
parent efcfb89b5c
commit b7bf2f6820

View file

@ -1934,7 +1934,7 @@ gst_matroska_demux_query (GstMatroskaDemux * demux, GstPad * pad,
gst_query_parse_seeking (query, &fmt, NULL, NULL, NULL);
if (fmt != GST_FORMAT_TIME || !demux->index) {
gst_query_set_seeking (query, GST_FORMAT_TIME, FALSE, -1, -1);
gst_query_set_seeking (query, fmt, FALSE, -1, -1);
} else {
gst_query_set_seeking (query, GST_FORMAT_TIME, TRUE, 0,
demux->duration);