diff options
-rw-r--r-- | ext/musepack/gstmusepackdec.c | 13 |
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; |