summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog8
-rw-r--r--gst/modplug/gstmodplug.cc3
2 files changed, 11 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 137b7e37..3cef9b08 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2005-07-31 Jonathan Matthew <jonathan at kaolin dot hn dot org>
+
+ Reviewed by: Tim-Philipp Müller <tim at centricular dot net>
+
+ * gst/modplug/gstmodplug.cc:
+ Don't crash if a query comes in and we're not set
+ up yet (fixes #312121).
+
2005-07-28 Tim-Philipp Müller <tim at centricular dot net>
* testsuite/gst-lint:
diff --git a/gst/modplug/gstmodplug.cc b/gst/modplug/gstmodplug.cc
index 6d4c4ab5..afdcf3ce 100644
--- a/gst/modplug/gstmodplug.cc
+++ b/gst/modplug/gstmodplug.cc
@@ -333,6 +333,9 @@ gst_modplug_src_query (GstPad * pad, GstQueryType type,
modplug = GST_MODPLUG (gst_pad_get_parent (pad));
+ if (!modplug->mSoundFile)
+ return FALSE;
+
switch (type) {
case GST_QUERY_TOTAL:
switch (*format) {