[0.11] gstreamer: filesink: implement SEEKING query
Tim Müller
tpm at kemper.freedesktop.org
Sun Feb 26 16:14:30 PST 2012
Module: gstreamer
Branch: 0.11
Commit: 82a954438529a23e0d8a995196f7cb4036c99341
URL: http://cgit.freedesktop.org/gstreamer/gstreamer/commit/?id=82a954438529a23e0d8a995196f7cb4036c99341
Author: Tim-Philipp Müller <tim.muller at collabora.co.uk>
Date: Sat Feb 25 15:07:43 2012 +0000
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.
---
plugins/elements/gstfilesink.c | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/plugins/elements/gstfilesink.c b/plugins/elements/gstfilesink.c
index 9356c0f..543dbfe 100644
--- a/plugins/elements/gstfilesink.c
+++ b/plugins/elements/gstfilesink.c
@@ -495,6 +495,16 @@ gst_file_sink_query (GstBaseSink * bsink, GstQuery * query)
res = TRUE;
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:
res = GST_BASE_SINK_CLASS (parent_class)->query (bsink, query);
break;
More information about the gstreamer-commits
mailing list