summaryrefslogtreecommitdiffstats
path: root/ext/musepack
diff options
context:
space:
mode:
authorDave Robillard <dave@drobilla.net>2009-08-09 00:14:27 -0400
committerDave Robillard <dave@drobilla.net>2009-08-09 00:14:27 -0400
commitdd5afbf0c6557ad89994cbfd91e4117e8503b81a (patch)
tree4f18322a717c6dbe64b8b38194e302b1668dcb3d /ext/musepack
parent5d9d4a7b518c42bda88c7f6c87ce7c3c01233562 (diff)
parent6115e0cb0ef3ae85397297c7e30c2e9b4a0a181e (diff)
downloadgst-plugins-bad-dd5afbf0c6557ad89994cbfd91e4117e8503b81a.tar.gz
gst-plugins-bad-dd5afbf0c6557ad89994cbfd91e4117e8503b81a.tar.bz2
gst-plugins-bad-dd5afbf0c6557ad89994cbfd91e4117e8503b81a.zip
Merge branch 'master' of git://anongit.freedesktop.org/gstreamer/gst-plugins-bad into fdo
Diffstat (limited to 'ext/musepack')
-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;