summaryrefslogtreecommitdiffstats
path: root/ext
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian.droege@collabora.co.uk>2009-07-24 07:40:17 +0200
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2009-07-24 07:41:57 +0200
commit7de65d974eac1edeec207e1f1a27f9b62d9d0c01 (patch)
treea0e3a6ae47bb077be0d4c13b4641a416d594875e /ext
parentab6538561faa9defb1224a688b3107241389726b (diff)
downloadgst-plugins-bad-7de65d974eac1edeec207e1f1a27f9b62d9d0c01.tar.gz
gst-plugins-bad-7de65d974eac1edeec207e1f1a27f9b62d9d0c01.tar.bz2
gst-plugins-bad-7de65d974eac1edeec207e1f1a27f9b62d9d0c01.zip
musepackdec: Implement SEEKING query
Diffstat (limited to 'ext')
-rw-r--r--ext/musepack/gstmusepackdec.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/ext/musepack/gstmusepackdec.c b/ext/musepack/gstmusepackdec.c
index fea4bc05..30a34bff 100644
--- a/ext/musepack/gstmusepackdec.c
+++ b/ext/musepack/gstmusepackdec.c
@@ -300,6 +300,7 @@ gst_musepackdec_get_src_query_types (GstPad * pad)
static const GstQueryType query_types[] = {
GST_QUERY_POSITION,
GST_QUERY_DURATION,
+ GST_QUERY_SEEKING,
(GstQueryType) 0
};
@@ -358,6 +359,18 @@ gst_musepackdec_src_query (GstPad * pad, GstQuery * query)
}
break;
}
+ case GST_QUERY_SEEKING:{
+ GstFormat fmt;
+
+ res = TRUE;
+ gst_query_parse_seeking (query, &fmt, NULL, NULL, NULL);
+ if (fmt == GST_FORMAT_TIME || fmt == GST_FORMAT_DEFAULT)
+ gst_query_set_seeking (query, fmt, TRUE, 0, -1);
+ else
+ gst_query_set_seeking (query, fmt, FALSE, -1, -1);
+
+ break;
+ }
default:
res = gst_pad_query_default (pad, query);
break;