diff options
-rw-r--r-- | ChangeLog | 8 | ||||
-rw-r--r-- | gst/modplug/gstmodplug.cc | 3 |
2 files changed, 11 insertions, 0 deletions
@@ -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) { |