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).
This commit is contained in:
parent
7b292da697
commit
cf602c2379
@ -1,3 +1,9 @@
|
|||||||
|
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)
|
|||||||
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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user