musepackdec: Implement SEEKING query
diff --git a/ext/musepack/gstmusepackdec.c b/ext/musepack/gstmusepackdec.c
index fea4bc0..30a34bf 100644
--- a/ext/musepack/gstmusepackdec.c
+++ b/ext/musepack/gstmusepackdec.c
@@ -300,6 +300,7 @@
   static const GstQueryType query_types[] = {
     GST_QUERY_POSITION,
     GST_QUERY_DURATION,
+    GST_QUERY_SEEKING,
     (GstQueryType) 0
   };
 
@@ -358,6 +359,18 @@
       }
       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;