mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-10-06 10:42:22 +00:00
filesink: implement SEEKING query
We may or may not do seeking, depends on the output file/device really, it doesn't have to be a file after all.
This commit is contained in:
parent
c5b335a0e2
commit
82a9544385
1 changed files with 10 additions and 0 deletions
|
@ -495,6 +495,16 @@ gst_file_sink_query (GstBaseSink * bsink, GstQuery * query)
|
||||||
res = TRUE;
|
res = TRUE;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case GST_QUERY_SEEKING:
|
||||||
|
gst_query_parse_seeking (query, &format, NULL, NULL, NULL);
|
||||||
|
if (format == GST_FORMAT_BYTES || format == GST_FORMAT_DEFAULT) {
|
||||||
|
gst_query_set_seeking (query, GST_FORMAT_BYTES, self->seekable, 0, -1);
|
||||||
|
} else {
|
||||||
|
gst_query_set_seeking (query, format, FALSE, 0, -1);
|
||||||
|
}
|
||||||
|
res = TRUE;
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
res = GST_BASE_SINK_CLASS (parent_class)->query (bsink, query);
|
res = GST_BASE_SINK_CLASS (parent_class)->query (bsink, query);
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue